Greetings,
As I'm at the point making SWAG's, thought I'd check with the experts here.
I've got a series of file names that I'd like to remove a character string that is immediately followed by a sequence number. So, I'd have this:
Filename to convert: "Test Results01 Lab01.str" "Test Results02 Lab02.str" ...and on to "Test Results50 Lab50". As well I have another set of files that have a similar naming but go to 3 sequence digits, ex: "Test Results101 CLab101.str".
Filenames after conversion: "Test Results XX.str" So, I still have different file names since the XX is also a sequence number.
I've figured out I can use ^(.+)Lab.+$ to remove LabXX, but am left with "Test Results01..str" (an extra "."). I can strip this out, yes with Remove(5).
However, I'm sure there's a regex that would do this without the need to do Remove(5).
It's more of an academic exercise, since I did figure a work-around. But in the interests of pure science...
Any thoughts? Thanks!
Tom