Wildcard search characters, Replace, Wildcard search characters replace – Rockwell Automation 2098-UWCPRG Ultraware Software User Manual User Manual

Page 314: Wildcard search, Characters, Wildcard, Search characters

Advertising
background image

316

Rockwell Automation Publication 2098-UM001G-EN-P - February 2011

Chapter 6 Creating and Running Programs

Wildcard Search Characters

Both the Find dialog box and the Replace dialog box permit you to search for text
in a header (.h) or source (.c) file using expressions. You create an expression using
ordinary text combined with these wildcard characters.

Replace

Use this command to open the Replace dialog box, which you can use to:

search for and highlight text in a selected source (.c) or header (.h) file, and

replace the highlighted text with other text.

The Replace command is enabled only if a source file (.c) or header file (.h) is
currently selected in the Client Area.

To execute the Replace command:

1. Select the source (.c) or header (.h) file to search in the Client Area.
2. Use one of these commands:

Click Replace in the Edit menu.

Simultaneously press the Ctrl + H keys.

Expression Name

Syntax

Description

Beginning of Line

^

Starts the match at the beginning of a line.
Significant only at the beginning of an expression.

Or

|

Matches the expression before or after the |
symbol. Used mostly within a group. For example,
((sponge)|(mud)) bath matches both sponge bath
and mud bath.

End of Line

$

Anchors the match to the end of a line. Significant
only at the end of an expression.

Character Not in Set

[^]

Matches any character not in the set of characters
following the ^ symbol.

Grouping

()

Groups a subexpression.

Any Character

.

Matches any character.

One or More

+

Matches at least one occurrence of the preceding
expression, matching as many characters as
possible.

Escape

\

Matches the literal character following the
backslash. This lets you search for characters
which otherwise would be treated as a wildcard
search character, such as ^ or +.

Set of Characters

[ ]

Matches any one of the characters within the []. To
specify a range of characters, list the starting and
ending character separated by a dash, as in [a-z].

Zero or More

*

Matches zero or more occurrences of the
preceding expression.

Advertising