I have a list of strings ofwith the below format :
full1
full1inc1
full1inc2
full1inc3
full2
full2inc1
full2inc2
full3
.
.
full100inc100
- full1
- full1inc1
- full1inc2
- full1inc3
- full2
- full2inc1
- full2inc2
- full3
- ...
- ....
- full100inc100
Basically, the integer value after fullthe "full" can be any number and the "inc" may or may not be there.
I have to pick an arbitrary string from this list ,say let's say the "full32" or the "full32inc1" and isolate the substringsubstring "full" along with the number that follows and put it in another string.
How am i suppose tocould I do this ? Should I use regexRegex or string matchingString Matching ??