brc64 /regexp failing with quotes or apostrophes

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

brc64 /regexp failing with quotes or apostrophes

Postby ThomasT » Sun Apr 06, 2025 12:36 pm

Example filename:
"Something S01e02 T’boch.mkv"

(Not really an apostrophe, but a RIGHT SINGLE QUOTATION MARK)

Command:
Code: Select all
brc64 /PATTERN:"*.mkv" /REGEXP:"(?i)(.* S\d\d)e(\d.*)":"\1E\2" /QUIET /EXECUTE


result:
"E02 T.mkv"

I don't see why it's failing. The way I'm reading it, it should just change the case of the "e"

Please advise.
ThomasT
 
Posts: 4
Joined: Sat Dec 14, 2024 10:46 am

/RegExp failing with unicodes

Postby Luuk » Sat Apr 12, 2025 12:15 pm

The pcre.dll for BRC wont properly conduct unicodes, but could do something like...
brc64 /Pattern:*.txt /ReplaceCI:"’:|" /RegExp:"^(.* S\d\d)e(\d.*):\1E\2" /ReplaceCI:"|:’"
Luuk
 
Posts: 803
Joined: Fri Feb 21, 2020 10:58 pm


Return to BRC Support