info.mailtraq.com > Management > Script Functions A-Z > Pos() Pos()Returns the start character number of a substring within a string. Character matches are case sensitive and commence at 1 (one).
int := Pos( substr , string )
- substr
- The substring to search for in string
- string
- The string to be searched
- int
- The integer of the start position of substring within string if found, zero if not found
Example usage 1 := Pos("a", "abcd")
0 := Pos("z", "abcd")
5 := Pos("cat", "The cat sat on the mat") |