Regex support (pcre vs javascript)

A swapping-ground for Regular Expression syntax

Regex support (pcre vs javascript)

Postby SideChain » Wed May 04, 2016 3:08 am

Does it not support the lazy operator? This is what I'm expecting it to match http://regexr.com/3dbl8. It instead matches the whole filename. I have include extension ticked.

Also, is there any way to replace what it matches with nothing? If I leave the replace box blank, it'll just completely ignore the regex portion of the renaming.
SideChain
 
Posts: 4
Joined: Wed May 04, 2016 2:45 am

Re: Regex support

Postby Admin » Wed May 04, 2016 3:12 am

Hi, what Regular Expression are you using? thanks
Admin
Site Admin
 
Posts: 1504
Joined: Tue Mar 08, 2005 8:39 pm

Re: Regex support

Postby SideChain » Wed May 04, 2016 3:14 am

Everything is in the link.
SideChain
 
Posts: 4
Joined: Wed May 04, 2016 2:45 am

Re: Regex support

Postby Admin » Wed May 04, 2016 3:19 am

I see, but the example is using JavaScript RegExp, while RegEx (1) in BRU uses Perl RegExp format.
Javascript renaming in BRU uses JavaScript RegExp
Admin
Site Admin
 
Posts: 1504
Joined: Tue Mar 08, 2005 8:39 pm

Re: Regex support

Postby SideChain » Wed May 04, 2016 3:38 am

Matches work perfectly still here using PCRE: https://regex101.com/r/rC1yA8/1

EDIT: Whoops, looked at it wrong. Doesn't work.
EDIT2: Disregard above edit. Beginning statement still stands.

Also, you missed my 2nd line about the ability to replace a match with nothing.
SideChain
 
Posts: 4
Joined: Wed May 04, 2016 2:45 am

Re: Regex support

Postby SideChain » Wed May 04, 2016 3:49 am

Googled a bit and figured out how to use the javascript renaming feature. Thanks for giving some of your time to help.
SideChain
 
Posts: 4
Joined: Wed May 04, 2016 2:45 am

Re: Regex support

Postby Admin » Wed May 04, 2016 4:24 am

No worries, great that it is working now. :)
Admin
Site Admin
 
Posts: 1504
Joined: Tue Mar 08, 2005 8:39 pm


Return to Regular Expressions