nindex
nindex(t_string1S_string2) =>x_result/nil
Description
Finds the symbol or string, S_string2, in t_string1 and returns the character index, starting from one, of the first point at which the S_string2 matches part of t_string1.
Arguments
Value Returned
|
Index corresponding to the point at which S_string2 matches part of t_string1. The index starts from one. |
|
Examples
nindex( "abc" 'b )
=> 2
nindex( "abcdabce" "dab" )
=> 4
nindex( "abc" "cba" )
=> nil
Related Topics
Return to top