Page 1 of 1

Apostrophe BRC issue

PostPosted: Wed Jul 04, 2018 1:37 am
by Dsastray
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)

Re: Apostrophe BRC issue

PostPosted: Thu Mar 07, 2019 8:50 pm
by bru
No need to bother with apostrophes, BRC cant change a files' full pathname, only its filename.
Sorry.