You can search selected objects, the active project database or parts of it for text to replace it:
a) Search and replace in specific objects
1.Select the objects in the object list or use the Home[Edit] > Find command to search for the objects in which you want to replace text and then select the objects found.
2.Click on Home[Edit] > Replace to open the Find and Replace dialog box.
3.If necessary, obtain further help in the dialog box.
b) Search and replace in a specific folder
1.Open the folder in the object list but do not select any objects in it.
2.Click on Home[Edit] > Replace to open the Find and Replace dialog box.
3.If necessary, obtain further help in the dialog box.
c) Search and replace in all objects in the project database
1.Click on Home[Edit] > Replace to open the Find and Replace dialog box.
2.In the Find and Replace dialog box, select Find and replace in complete project database.
3.If necessary, obtain further help in the dialog box.
Pattern matching when searching for text
The Use search pattern option is used to search for text patterns. The text pattern is defined here as what is called a regular expression. All text is found that matches the given regular expression. In regular expressions, special characters and sequences are used to represent a text pattern. The following table describes these characters and sequences and provides some examples.
Character |
Description |
---|---|
^ |
Finds the beginning of the string. |
$ |
Finds the end of the string. |
* |
Never finds the preceding character or finds it several times. For example, "zo*" finds "z" or "zoo". |
+ |
Finds the preceding character once or several times. For example, "zo+" finds "zo" but not "z". |
? |
Finds the preceding character zero times or once. For example, "b?ig?" finds "ig" in "signal". |
. |
Finds every single character. |
x|y |
Finds either x or y. For example, "z|wood" finds "z" or "wood". "(z|w)oo" finds "zoo" or "wood". |
{n} |
n is a non-negative integer. Finds exactly n times. For example, "o{2}" does not find the "o" in "Bob" but it does find the first two o's in "foooood". |
{n,} |
n is a non-negative integer. Finds at least n times. For example, "o{2,}" does not find the "o" in "Bob" but finds all o's in "foooood." "o{1,}" is equivalent to "o+". "o{0,}" is equivalent to "o*". |
{n,m} |
m and n are non-negative integers. Finds at least n and at most m times. For example, "o{1,3}" finds the first three o's in "fooooood." "o{0,1}" is equivalent to "o?". |
[xyz] |
A group of characters. Finds every one of the characters included. For example, "[abc]" finds the "a" in "signal". |
[^xyz] |
A group of excluded characters. Finds every character not included. For example, "[^abc]" finds the "s" in "signal". |
[a-z] |
A range of characters. Finds every character in the range. For example, "[a-z]" finds every alphabetical character from "a" to "z". |
[^m-z] |
A range of excluded characters. Finds every character not in this range. For example, "[m-z]" finds every character that does not lie between "m" and "z". |
\b |
Finds a word limit, i.e. the position between a word and a space. For example, "al\b" finds the "al" in "signal", but not the "al" in "signals". |
\B |
Finds a non-word limit. "ea*r\B" finds "ear" in "never early". |
\d |
Finds a number. Equivalent to [0-9]. |
\D |
Finds a non-numeric character. Equivalent to [^0-9]. |
\s |
Finds a space character. Equivalent to "[ ]". |
\S |
Finds everything but space characters. Equivalent to "[^ ]". |
\w |
Finds every word character including underline. Equivalent to "[A-Za-z0-9_]". |
\W |
Finds every character that does not belong to a word. Equivalent to "[^A-Za-z0-9_]". |