index
index(t_string1S_string2) =>t_result/nil
Description
Returns a string consisting of the remainder of string1 beginning with the first occurrence of string2.
Arguments
Value Returned
|
If S_string2 is found in t_string1, returns a string equal to the remainder of t_string1 that begins with the first character of S_string2. |
|
Examples
index( "abc" 'b )
=> "bc"
index( "abcdabce" "dab" )
=> "dabce"
index( "abc" "cba" )
=> nil
index( "dandelion" "d")
=> "dandelion"
Related Topics
Return to top