Search s[] for match.
If global attribute, return same value as exec(s). If not global attribute, return array of all matches.
See Implementation
Search s[] for match.