(?-xism:foo\d+) when string is "foo17" (?-xism:bar\S+?) when string is "barABC" (?-xism:bar\S+?) when string is "nomatch"