Desktop User Guides > Professional > Using UNICOM Intelligence Professional > Finding and replacing text > Using regular expressions to find text
 
Using regular expressions to find text
You can use regular expressions to search for text. Open either the Find pane or the Replace pane, and then select Use. When you click Find Next, the search string is evaluated as a regular expression.
For more information about regular expressions, see:
http://www.boost.org/doc/libs/1_57_0/libs/regex/doc/html/boost_regex/syntax.html
Examples of regular expressions
Expression
Matches
abcd
The character sequence abcd anywhere in a line
^abcd
The character sequence abcd at the beginning of a line
^\s*abcd
The character sequence abcd at the beginning of a line after zero or more spaces
abcd\r$
The character sequence abcd at the end of a line
In UNICOM Intelligence Professional, you must use \r$ to find text at the end of a line instead of the more typical $.
\.txt\r$
The character sequence .txt at the end of a line
[^A-Z]+
Any character that is not an uppercase English letter
[0-9]+\r$
Any digits in the range 0 to 9 that appear at the end of a line
^\$
A dollar sign at the beginning of a line
\[\]
The [ character and the ] character
See also
Finding and replacing text