Pretty sure I need to use RegEx for this task, but trying to figure out RegEx is putting hair on my chest. I have a slew (+55K) of pdf files that have a format of:
SEQ1_SEQ2_SEQ3_SEQ4.pdf
I need to remove the underscore ("_") before SEQ3 and everything to the right of it. A successful result would look like:
SEQ1_SEQ2.pdf
Problem is that SEQ1 and SEQ2 having varying lengths, so I can't key off those. Basically need to dump everything from the 2nd "_" on.
Any assistance would be greatly appreciated.