very basic regular expression issue

A swapping-ground for Regular Expression syntax

very basic regular expression issue

Postby tracy99 » Fri Mar 01, 2013 7:52 am

I just downloaded BRU, and the regular expression matcher isn't working as I expected it would. A very simple example: If I tell BRU to match the dot . (any single character), and to replace with a single letter like j for example, BRU replaces the entire filename with j rather than just the first character. Am I missing something, or is BRU defective? Thank you.
tracy99
 
Posts: 2
Joined: Fri Mar 01, 2013 7:42 am

Re: very basic regular expression issue

Postby Stefan » Fri Mar 01, 2013 7:47 pm

Every regex implementation of different apps could work different. Just get used to it. There are many examples how it works in this forum...
Stefan
 
Posts: 736
Joined: Fri Mar 11, 2005 7:46 pm
Location: Germany, EU

Re: very basic regular expression issue

Postby tracy99 » Fri Mar 01, 2013 9:15 pm

Hi Stefan. Thank you for responding, but I don't think that is a good answer. The behavior I described contradicts BRU's own documentation for how it is supposed to work.
In addition, something this basic should not vary over different implementations.
tracy99
 
Posts: 2
Joined: Fri Mar 01, 2013 7:42 am

Re: very basic regular expression issue

Postby wommy » Sun Mar 31, 2013 1:17 am

Sting - Desert Rose.mp3 = Title
(.)(.+) - (.+) = 1st String
Be sure there is NO space between (.)and(.+)
P\2 - \3 = 2nd String
Pting - Desert Rose.mp3 = New Title


Hope that is what you wanted
wommy
 
Posts: 2
Joined: Sun Mar 31, 2013 12:47 am


Return to Regular Expressions