Description |
Finds each or every occurrence of a text pattern and places the result into a variable. Regular expressions may be used for added power and flexibility. Used to locate a word or phrase inside of a larger piece of text. |
Declaration |
<AMFINDTEXT TEXT="text" FIND="text" RESULTVARIABLE="text [variable name]" USERE="yes/no" USECASE="yes/no" INDEX="number" FOUNDTEXTVAR="text [variable name]" TOTALMATCHESVAR="text [variable name]"> |
Example |
<AMVARIABLE NAME="index"></AMVARIABLE> |
General Tab Parameters |
Text: Specifies target text to be searched. Text, Required Find: Specifies the text to search for. text,Required, Required Case Sensitive: Specifies whether the search performed should be case sensitive. Yes/No, Optional (default: No) Regular Expression: Specifies whether the FIND parameter is a regular expression. If the option is no, the Find parameter contains literal text, if the option is yes, the find parameter contains a regular expression. Yes/No, Optional (default: No) Populate variable with first index: Specifies the variable to receive the position of the text if found. Text [variable name], Required |
Advanced Tab |
Starting at the following
instance: Specifies target text to be searched. Click the Expression
Builder icon Number, Optional (default: 1) Total find count into variable: Specifies the variable to receive the total instances found. Text [variable name], Required Populate variable with found text: Specifies the variable to receive the text that was found. This parameter is useful if a regular expression was used for the find text. Text [variable name], Required |