Pos returns the position of the first occurrence of Pattern in string S.
The first position in S is 1, the second position in S is 2 e.t.c.
By default, the search for Pattern starts at position 1 in the string S,
Pattern can have any number of characters.
Pos will return zero (0) -
Pos is case-sensitive so the characters are matched exactly.
Please also refer to the function PosEx which performs a similar function, but allows you to offset the starting search position.
Declaration: function Pos( const Pattern, S : string) : integer;
Several examples follow.