I need to move around folder names that are in a standard

A swapping-ground for Regular Expression syntax

I need to move around folder names that are in a standard

Postby Marc » Fri Apr 17, 2009 9:57 pm

format but the files names are irregular as far as names e.g. "number. name - year - address". The only part standard is the number (3 digit) and year (4 digit). The characters in the name or address can vary tremendously. I need to move the year to the end of the folder name. So it's "number. name - address - year".

I really don't know where to start!

Marc
Marc
 
Posts: 4
Joined: Fri Apr 10, 2009 3:06 am

Re: I need to move around folder names that are in a standard

Postby wio-dude » Wed May 13, 2009 5:36 am

The only thing you need to worry about is the end.

Try this:

MATCH: - (\d{4}) - (.*)
REPLACE: - \2 - \1
wio-dude
 
Posts: 1
Joined: Wed May 13, 2009 5:33 am


Return to Regular Expressions