Professional Documents
Culture Documents
Search UltraEdit.com
1 de 3 26/02/2010 9:59
Regular expressions with find and replace http://www.ultraedit.com/support/tutorials_power_tips/ultraedit/regula...
Regular expressions
Regular Expressions are essentially patterns rather than specific strings that are used with Find/Replace
Get your solution today!
operations. There are many ways that regular expressions may be used to streamline operations and enhance
efficiency. We have listed below a reference key for both UltraEdit-style and UNIX-style regular expressions as
well as some examples to demonstrate how regular expressions may be used in UltraEdit.
+ +
Matches one or more of the preceding character/expression. At least one occurrence of the Application Screenshots
character must be found. Does not match repeated newlines.
Matches the preceding character/expression zero or more times. Does not match repeated
++ *
newlines.
Indicates the next character has a special meaning. "n" on its own matches the character "n". "^n"
^ \ (UE expressions) or "\n" (UNIX expressions) matches a linefeed or newline character. See
examples below.
[ ^t^b] \s Matches any white space including space, tab, form feed, etc., but not newline.
[~ ^t^b] \S Matches any non-white space character but not newline. UEStudio home
\v Matches a vertical tab character. UltraEdit vs. UEStudio
Simple string matching is probably the most basic form of regular expressions but can allow you to quickly
exploit different patterns so that you can search for more than one string at a time rather than doing multiple
Find operations.
2 de 3 26/02/2010 9:59
Regular expressions with find and replace http://www.ultraedit.com/support/tutorials_power_tips/ultraedit/regula...
3 de 3 26/02/2010 9:59