re_matches now works without g flag