beautypg.com

Search pattern metacharacters – Rockwell Automation 2755 AdaptaScan Software User Manual

Page 202

background image

Metacharacters

C–2

Use these metacharacters in the message find string or match table
rule. They cannot be used in the message pass and fail replacement
strings.

Position Dependent

Character

Description and Use

^

$

Note: The following two metacharacters are position-dependent. They
must appear in the location specified to be matched.

If the circumflex ( ^ ) is used as the first character in the find string, it
indicates that the characters, other metacharacters, expressions, or
strings must occur at the beginning of the string to be matched. Note
that the circumflex has a special meaning if used within square brackets,
as explained elsewhere in this chapter.

When the dollar sign is used as the last character in the find string, it
indicates that the characters, other metacharacters, expressions or
strings must occur at the end of the string to be matched.

Wildcard

Character

Description and Use

.

The period represents any single character, and is used as a
single-character “wildcard”.

String Manipulation

Character

Description and Use

?

+

*

Note: These metacharacters refer to the character, metacharacter,
string, or expression that immediately precedes them.

The question mark instructs the rule to match either no occurrence or
one occurrence of what precedes it. Use this metacharacter in a string
where the character may not appear at all, or may appear once.

The plus sign instructs the rule to match one or more occurrences of
what precedes it. Use this metacharacter in a string where the character
will be present, but you are unsure how many times it appears.

The asterisk instructs the rule to match none or more occurrences of
what precedes it. Use this metacharacter in a search string where the
character may not appear, or may appear one or more times.

Search Pattern
Metacharacters