@POS |
|
| Top Previous Next | |
Syntax:
@POS(<string1>,<string2>{,EXACT}{,<start_pos>})
Description:
This function returns the starting character position of the first occurrence of <string1> in <string2>. The characters in the string are counted from 1 ([VDS6] unless the optional value <start_pos> is specified, in which case the search starts at this point). The value 0 is returned if either string is empty or <string1> does not occur in <string2>.
Note that by default the comparison is not case sensitive. An optional third argument EXACT may be used to specify a case-sensitive match
OK:
Unchanged.
Example:
%P = @pos(a,%A)
info Position of a in %A is: %P
See also: