I was wondering if anyone can help me streamline this a bit more. I'm still just learning but would like to be able to know how to make this work more effectively... Any help would be greatly appreciated.
I have a set of files like this....
2c2_657_John_Smith_95839401e97k7_1426.jpg
Each section may be a different number of characters.
I would like to be able to select any, often multiple parts of the filename between the underscores to be kept and some to be removed.
Eg... The end result could be:
2c2_657_1426.jpg
Or
2c2_657_John_Smith.jpg
Or any other variation.
I have figured out and used this to get me a working result, but through trial and error:
(.*)(.*)(.*)(_.*)(_.*)
\1\3\5
Could someone please tell me if this is the right way, if there is a better method I'd love to get it working so It can be interchangeable and so I can understand it, right now I feel like I'm taking stabs in the dark.
Thank you. ????