FindInText

Revision as of 00:33, 29 September 2008 by Lchrisman (talk | contribs)


FindInText( substr, text, start, caseInsensitive )

Returns the position of the first occurrence of substr in text. If substr does not occur in text, returns 0. The optional third parameter, start, specifies the position to start searching at. You can specify the fourth parameter, caseInsensitive, as True to signify that upper and lower variants of the same characters match.

Library

Text Functions

Examples

FindInText("Now is not the time","is") → 5
FindInText("Now is not the time","i") → 5
FindInText("Now is not the time","i",6) → 17
FindInText("Now is not the time","now") → 0
FindInText("Now is not the time","no") → 8
FindInText("Now is not the time","no",caseInsensitive:True) → 1

See Also

Comments


You are not allowed to post comments.