I need to be able to replace a user input with just part of the users input.
In this case it's aggregate selection. Somewhere in every aggr name is either a1,a2,a3,or a4. Unfortunatly its not always in the same place.
I was hopeing for something like;
if( inputStr = [a1])
that way Aggr1_a1_oracle_prod and filer2_15k_esx_fcp_a1 would each let me replace them with a1. This doesn't work, and programing isn't my strong suite. I have to do something similar for several diparent examples so if a regex match could be shown it would really help me out. There are at least a hundread aggregates and I dont' want to have to do if/else for all of them.