Small bug in Help fileMatch

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

Small bug in Help fileMatch

Postby chrisjj » Thu Jul 10, 2025 3:19 pm

rawDate = fileMatch('^Date:\s*.*', 'i');


'\s" is nonsense here, and presumably that should read:

Code: Select all
rawDate = fileMatch('^Date:\\s*.*','i');


though it doesn't cause a fail.

And better:

Code: Select all
rawDate = fileMatch('^Date:.*',    'i');


or indeed (as per RFC):

Code: Select all
rawDate = fileMatch('^Date:.*');
chrisjj
 
Posts: 44
Joined: Wed Mar 30, 2011 5:26 pm

Re: Small bug in Help fileMatch

Postby Admin » Fri Jul 11, 2025 2:05 am

Hi, \s is meant to match all spaces after : and before date starts (just in case there are more than one).
Admin
Site Admin
 
Posts: 2980
Joined: Tue Mar 08, 2005 8:39 pm


Return to BRU Support