Parse capturing groups and lookahead assertions