Using Find action
Use the Find action to find a substring within the specified string.
Note: To search for strings that contain the dollar sign ($), you must enter the sign twice. Otherwise, the bot interprets the dollar sign as a regular expression character.
To find a substring from the specified string, follow these steps:
- In the Actions palette, double-click or drag the Find action from the String package.
- In the Source string field, specify the source string.
- In the Find string field, specify the substring.
In the When finding field, select one of the
- Match case: Matches the case of the text.
- Do not match case: Does not match the case of the text.
In the The "find string" is field, select one of the
- A regular expression: The substring is a regular expression
- Not a regular expression: The substring is not a regular expression.
In the Start from field, specify the starting
For example, you want to replace Red in the source string with Blue in a paragraph. Red is in 10 instances in the paragraph and you want to replace only the third occurrence. Enter 3 in the Start from field to identify the third occurrence.
- In the Assign the output to variable list, specify the number variable.
- Click Save.