Search s[] for first match with pattern.
String to search.
Regular expression pattern.
index into s[] of match if found, -1 if no match.
auto s = "abcabcabab"; find(s, RegExp("b")); // match, returns 1 find(s, RegExp("f")); // no match, returns -1
See Implementation
Search s[] for first match with pattern.