strpbrk
strpbrk(t_str1 t_str2) =>t_subStr/ nil
Description
Returns a substring of the first occurence in t_str1 of any character from the string pointed to by t_str2
Arguments
Value Returned
|
Returns a substring of the first occurence of any character specified in t_str2 |
|
|
Returns |
Examples
s="world"
strpbrk(s "o")
=> "orld"
strpbrk(s "sssssl")
=>"ld"
strpbrk(s "ss")
=> nil
strpbrk("WORLD" "world")
=> nil
strpbrk("WORLD" " ")
Related Topics
Return to top