#1 : 09/09-15 06:44 Candelario
Posts: 2
|
I have a bunch of files movies , starting with the name of movie , and then the star name but I need to change the order .. first the star name then the movie name and the scene
( the heaven is yours scene 01 - Lolita simony ) ( the heaven is yours scene 02 - Patty Allot ) etc ... I want to change to ( Lolita simony - the heaven is yours scene 01 ) ( Patty Allot - the heaven is yours scene 02 ) Using the ( - ) like reference, because is the symbol that separated the one to the other ! Many thanks in advance |
#2 : 12/09-15 15:07 Tester123
Posts: 92
|
Try this Replace Method:
Text to be replaced: (.+)( - )(.+) Replace with: $3$2$1 Use regular expression: Tick Summary: Search for any series of characters up to but not including the space-dash-space combination. This is placed in group 1. The space-dash-space combo itself is placed in group 2. Then look for another series of characters, and place these in group 3. In the replace string, put group 3 first ($3), followed by group 2 ($2) and then finally group 1 ($1). This effectively swaps group 1 and group 3. |
#3 : 13/09-15 07:46 Candelario
Posts: 2
|
Reply to #2:
That answer was just Perfect.... 1000 times thanks for your help !! You save me a weeks of work !! |