Power users of Microsoft Word will be familiar with the advanced Find options, commonly referred to as "caret codes" because they are composed of the caret symbol followed by a letter. For example, the caret code "^t" can be used to find a tab. AutoScript Desktop has a similar feature with much more power and usefulness than those codes.
Turn on Find's Regular Expression Option
The first step is to open a job in ASD, and then use the default hotkey [Ctrl]+[F] or click the [Find] button on the home tab to open the Find tool. Then, from the down-facing arrow next to the Find text box, click to check "Regular expression".
Use a Regular Expression (regex) for your Search
Now a whole new world is open to you. You can use the code \d to find any single digit or the code \d+ to find strings of digits. Following are regular expressions (regex) equivalent to the carat codes you'll find in MS Word.
|
REGEX
|
ITEM
|
CARET CODE
|
|
\n
|
paragraph mark
|
^p
|
|
\t
|
tab character
|
^t
|
|
.
|
any character
|
^?
|
|
\d
|
any digit
|
^#
|
|
[a-zA-Z]
|
any letter
|
^$
|
|
\^
|
caret character
|
^^ |
|
\u00B6
|
paragraph character (¶)
|
^v
|
|
\u2014
|
em dash (—) |
^+
|
|
\u2013
|
en dash (–) |
^=
|
|
\u000C
|
manual page break
|
^m
|
|
\u2011
|
nonbreaking hyphen
|
^~
|
|
\u00a0
|
nonbreaking space
|
^s
|
|
\u00ad
|
optional hyphen
|
^-
|
|
\s
|
white space (space, tab, newline)
|
^w
|
|
\
|
( add space after \ ) - space character
|
n/a
|
If you'd like to learn more about using regular expressions, feel free to reach out to our support team using the Request Help link above. They are a powerful feature available to you in AutoScript Desktop. Let us help you make the most of that feature.