Possible Bug with Regex Deleting files

A swapping-ground for Regular Expression syntax

Possible Bug with Regex Deleting files

Postby Emerkamp » Sun Jan 18, 2015 8:05 am

Not sure if this is a bug or not, I just got some movie files deleted using the regex option. The aviod duplicate option DOES NOT seem to work using REGEX.

This can be reproduced by:

Using the Regex Match and Replace (.*)( - )(.*)
\1
New - 01.txt
New - 02.txt
New - 03.txt
New - 04.txt

This Will DELETE ALL files and Leave you with only:
New.txt

I thought the Avoid Duplicates option was to add a counter (1),(2) to the end of any Duplcates it found. It seems to work using the other options, Just not Regex!!
Please let me know if this can be fixed. Now i don't know where to start to get my files back or even how many got wiped.
Emerkamp
 
Posts: 140
Joined: Sat Aug 23, 2014 2:35 pm

Re: Possible Bug with Regex Deleting files

Postby TheRegExpMaster » Sun Jan 18, 2015 9:09 pm

Hi,

Uncheck "Options > Overwrite Target Files".
TheRegExpMaster
 
Posts: 25
Joined: Wed Nov 05, 2014 8:45 pm

Re: Possible Bug with Regex Deleting files

Postby Emerkamp » Mon Jan 19, 2015 12:19 am

Hi,

Thanx for the reply,
But doesn't this make a copy of everything. With 200-300 gigs of video clips, I don't think i have HDD room for this. Not to mention the time it would
Prob. take to run it.

I still think their is a problem with the "Prevent Duplicates" option not working for Regex match and Replace,

Or is this how its suppose to work.
Emerkamp
 
Posts: 140
Joined: Sat Aug 23, 2014 2:35 pm

Re: Possible Bug with Regex Deleting files

Postby TheRegExpMaster » Mon Jan 19, 2015 4:19 am

No, it doesn't copy anything, it just makes sure that if you find yourself in the situation you described in your 1st message (which should never happen), none of your files will be deleted.

As its names implies, "Bulk Rename Utility" renames the files. It doesn't copy or move anything (unless you tell it to do so).
TheRegExpMaster
 
Posts: 25
Joined: Wed Nov 05, 2014 8:45 pm

Re: Possible Bug with Regex Deleting files

Postby mrlousi7 » Thu Feb 19, 2015 10:40 am

In trying to learn about regex I note that there are different kinds of regexes. For example, using this website: I can grab the part _dxxxxxxxxx etc using regex, but that regexdoesn’t work with BRC.





_____________________
XJWE
mrlousi7
 
Posts: 1
Joined: Thu Feb 19, 2015 10:38 am

Re: Possible Bug with Regex Deleting files

Postby Admin » Fri Feb 20, 2015 3:30 am

Please use this tester:

https://regex101.com/

BRU uses PCRE regex.
Admin
Site Admin
 
Posts: 2343
Joined: Tue Mar 08, 2005 8:39 pm


Return to Regular Expressions