The scan() function searches through a specified str.exp for the first occurrence of up to three user-definable characters specified by search.delimiters, in addition to the system delimiters value, subvalue, and attribute.
scan(str.exp, search.delimiters)
str.exp | Specifies the string to search. |
search.delimiters | Specifies up to three user-definable characters to be searched for in addition to the system delimiters value, subvalue, and attribute. The user-defined characters must be separated by a system delimiter. |
The following information applies to the scan() function:
Example 1
String = \The "first" or ’second’ name.\ d.position = scan(string,\’\:@am:\"\)
Example 2
loop input ans,1 until scan(’abc’,ans) do repeat