Next: , Previous: , Up: Internal Routines   [Contents][Index]

15.5.590 strpos

strpos(s1, s2) [, start]

Returns the position of substring s2 in string s1, if found, and -1 otherwise. If start is specified, then start seeking at index start in s1. If start is less than 0, then start at 0. If start points beyond the end of s1, then -1 is returned.

See also: strloc