Home  »  Support  »  Tutorials/Power Tips  »  UltraEdit  »  Perl compatible regular expressions
IDM Power Tips

Perl-style regular expressions

Have you been looking for a way to use your Perl compatible regular expressions with UltraEdit? Now you can, UltraEdit now includes Perl compatible regular expressions support in Find/Replace.


Find your string

To search for your string go to Search : Find (or CTRL F).

In order to use the Perl compatible regular expressions you MUST check the option for Regular Expressions.

UltraEdit has 3 styles of regular expression syntax. The default setting is the "UltraEdit Style" expression syntax. To enable Perl compatible expressions, click on the Advanced button (on the Find or Replace dialog) then enable Perl compatible Regular Expressions in the Regular Expression Engine option group.

With Perl syntax enabled, type your expression, and hit Next. It's that easy!

Find Dialog


A few examples

The example we used foo(?!bar) matches "foo" where not immediately followed by "bar"

Results

Using the "Highlight All" feature, you can see that the find did match "foo" not immediately followed by "bar"

For a few more examples, keep reading:

foo(?!bar) matches "foo" where not immediately followed by "bar"
(?<!bar)foo matches any "foo" NOT following "bar"
o{3} matches "o" occurring 3 times
o{3,} matches "o" occurring 3 or more times
o{3,5} matches "o" occurring at least 3, but not more than 5 times
(John|Jane|Jim|James)   Alternate matches (matches John, Jane, Jim, or James)

As mentioned above, the possibilities are limitless! For a more detailed explanation of Perl compatible regular expressions see the Help.


Back to power tips index


Buy Now
Upgrade
Download

Get your solution today!

UE/UC

Add UltraCompare to your purchase/upgrade of UltraEdit and complete your file management solution.


"We won't mince words:
UltraEdit is outstanding..."

Application Screenshots

Feature maps

Road trip, anyone?

UE Mobile

Bundle UE Mobile with your UE upgrade and save 50%!


Take the UltraEdit tour