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 except line breaks. Use "[\s\S]" if you want to match 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 boundary—that is, the position between a word character and a non-word character. For example, "al\b" finds the "al" in "signal", but not the "al" in "signals". For this purpose, only letters and numbers from the basic Latin alphabet, as well as the underscore, are considered word characters. |
\B |
Finds a non-word limit. "ea*r\B" finds "ear" in "never early". |
\d |
Finds a number. In addition to the digits 0 through 9, digits from other writing systems are also found. Use "[0-9]" if you want to find only the digits 0 through 9. |
\D |
Finds any character that "\d" does not find. |
\s |
Finds whitespace characters, including spaces, tabs, line breaks, carriage returns, page breaks, and vertical tabs, as well as Unicode whitespace characters such as the protected space. Use "[ \t\n\v\f\r]" if you want to find only the first ones listed. |
\S |
Finds any character that "\s" does not find. |
\w |
Finds every character, including letters (such as letters with umlauts and characters from other writing systems), digits, and the underscore. Use "[A-Za-z0-9_]" if you want to search only for letters from the basic Latin alphabet. |
\W |
Finds any character that "\w" does not find. |
*? |
Find as few characters as possible. For example, "<.*?>" finds "<a>" in "<a><b>", while "<.*>" finds the entire string. Accordingly, there are also "+?" and "??". |
(x) |
Groups multiple characters into a single group and saves the text found. For example, "(ab)+" finds "abab" in "ababc". |
(?:x) |
Groups multiple characters into a single group without saving the found text. |
\1 through \9 |
Finds the same text that the corresponding group found. For example, "(sig)\1" finds "sigsig". |
(?=x) |
Finds a position that is followed by x, without finding x itself. For example, "sig(?=nal)" finds "sig" in "signal" but not in "sigma”. |
(?!x) |
Finds a position that is not followed by x. For example, "sig(?!nal)" finds "sig" in "sigma" but not in "signal”. |
\n \r \t |
Finds a line break, a carriage return, or a tab. |
\ |
Removes the special meaning of the following character. For example, "\." matches a period, and "\\" matches a backslash. |
Note: The replacement text is always inserted unchanged. FlexPro does not evaluate references to groups in the search pattern, such as those written as "$1" in other programs. If you specify "$1" as the replacement text, you will get the string "$1".