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.
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!

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

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.













