HELP FINDING RIGHT SETTINGS
THE FILES I AM RENAMING USE THE FOLLOWING NAMING CONVENTION
EXAMPLE TEXT (4 DIGIT YEAR EX 2025) (TEXT 2) (TEXT 3)
I SIMPLY NEED TO DELETE EVERYTHING AFTER THE YEAR IN PARENTHESIS (2025) . SO EVERYTHING AFTER THE CLOSING PARENTHESIS.
I'VE TRIED USING REMOVE BUT CANNOT FIND THE RIGHT INPUT TO GET THE DESIRED RESULTS
EXAMPLE TEXT (4 DIGIT YEAR EX 2025) (TEXT 2) (TEXT 3)
I SIMPLY NEED TO DELETE EVERYTHING AFTER THE YEAR IN PARENTHESIS (2025) . SO EVERYTHING AFTER THE CLOSING PARENTHESIS.
I'VE TRIED USING REMOVE BUT CANNOT FIND THE RIGHT INPUT TO GET THE DESIRED RESULTS
Reply to #1:
Use a Replace method as follows:
A) Check "Use regular expressions"
B) Text to be replaced: ^(.*\(\d{4}\)).+
C) Replace with: $1
No spaces in/for B or C
See for explanation: https://regex101.com/r/878Lio/1
If that does not work for you, provide:
1) A list of actual sample filenames
and
2) A list of your desired new names
Use a Replace method as follows:
A) Check "Use regular expressions"
B) Text to be replaced: ^(.*\(\d{4}\)).+
C) Replace with: $1
No spaces in/for B or C
See for explanation: https://regex101.com/r/878Lio/1
If that does not work for you, provide:
1) A list of actual sample filenames
and
2) A list of your desired new names
Reply to #2:
Hi guys,
Joshua, I'm confused by your question; are there already parentheses around your years? If yes, Randy's solution is perfect. If no, this should word for you:
Replace: (\d{4}).*
Replace with: ($1)
(Everything else the same; still no spaces)
EDIT: I'm assuming there are no other four-digit numbers in the text before the year. END EDIT
Best,
DF
Hi guys,
Joshua, I'm confused by your question; are there already parentheses around your years? If yes, Randy's solution is perfect. If no, this should word for you:
Replace: (\d{4}).*
Replace with: ($1)
(Everything else the same; still no spaces)
EDIT: I'm assuming there are no other four-digit numbers in the text before the year. END EDIT
Best,
DF