Regular expression to skip character in capture group

In short: You can’t. A match is always consecutive, even when it contains things as zero-width assertions there is no way around matching the next character if you want to get to the one after it.

Leave a Comment