Apostrophe BRC issue

Post any Bulk Rename Command support requirements here. Open to all registered users.

Apostrophe BRC issue

Postby Dsastray » Wed Jul 04, 2018 1:37 am

BRC behaves unexpectedly when it runs into an apostrophe.

I am placing files into subdirectories, the subdirectory name is separated by an underscore

Using a file named "School Reports_Michigan's Top Academy (HS).pdf"

"C:\Program Files\Bulk Rename Utility\BRC\BRC64.exe" /DIR:"C:\Reports" /PATTERN:"*).pdf" /REGEXP:"(.+)_(.+)":"\1\\2" /EXECUTE

produces "Michigan.pdf" (does not move into subdirectory)
Note that testing this in BRU produces the expected "School Reports\Michigan's Top Academy (HS).pdf"

I smashed together some more Regex from Stack Overflow, thinking I must not be handling the apostrophe correctly:
"C:\Program Files\Bulk Rename Utility\BRC\BRC64.exe" /DIR:"C:\Reports" /PATTERN:"*).pdf" /REGEXP:"(.+)_([\'\w-\.]+)(.+)":"\1\\2\3" /EXECUTE
ALSO produces "Michigan.pdf" (does not move into subdirectory)
Note that testing this in BRU produces the expected "School Reports\Michigan's Top Academy (HS).pdf"

Thoughts? (For now I will be removing apostrophes from filenames)
Dsastray
 
Posts: 3
Joined: Wed Jul 04, 2018 1:15 am

Re: Apostrophe BRC issue

Postby bru » Thu Mar 07, 2019 8:50 pm

No need to bother with apostrophes, BRC cant change a files' full pathname, only its filename.
Sorry.
bru
 
Posts: 62
Joined: Wed Jan 31, 2018 7:35 pm


Return to BRC Support


cron