Difference between revisions of "FindInText"

m (adding doc status category stub page)
Line 2: Line 2:
 
[[Category:Doc Status D]] <!-- For Lumina use, do not change -->
 
[[Category:Doc Status D]] <!-- For Lumina use, do not change -->
  
FindInText( substr, text, start, caseInsensitive )
+
= 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") &rarr; 5
 +
:[[FindInText]]("Now is not the time","i") &rarr; 5
 +
:[[FindInText]]("Now is not the time","i",6) &rarr; 17
 +
:[[FindInText]]("Now is not the time","now") &rarr; 0
 +
:[[FindInText]]("Now is not the time","no") &rarr; 8
 +
:[[FindInText]]("Now is not the time","no",caseInsensitive:True) &rarr; 1
 +
 
 +
= See Also =
 +
 
 +
* [[SelectText]], [[TextReplace]]

Revision as of 00:33, 29 September 2008


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.