[regex] How to match, but not capture, part of a regex?