add ``regexp_matches`` scalar function implementation

will check, was copied over from lucene