Backreference problems using Perl regexes

Find, replace, find in files, replace in files, regular expressions

Backreference problems using Perl regexes

Postby kodavasal » Tue May 16, 2006 3:55 pm

Do backreferences work when using Perl regexes?

In an HTML file, when trying to find matching tags and everything in between, the following regular expression

<(\w+)>.*?</\1>

gives an "invalid regular expression" error.
kodavasal
 

Re: Backreference problems using Perl regexes

Postby Mofi » Wed May 17, 2006 5:32 am

Only with the latest versions of UEStudio (v5.50) and UltraEdit (v12.10) released yesterday where exactly this issue was fixed according to the history in readme.txt. I have not tested, if it really works now with the latest versions.
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4064
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna

Re: Backreference problems using Perl regexes

Postby kodavasal » Wed May 17, 2006 2:55 pm

I downloaded the update and it works! Thanks.
kodavasal
 


Return to Find/Replace/Regular Expressions