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.
More Related Contents:
- Awk – replace coumn 2 in table 1 from coumn 2 in table 2 based on matching data in column 1 (common between tables)
- Reference – What does this regex mean?
- How do I match any character across multiple lines in a regular expression?
- How do you match only valid roman numerals with a regular expression?
- Regex to match string containing two names in any order
- Validating IPv4 addresses with regexp
- Regular expression pipe confusion
- How to use conditionals when replacing in Notepad++ via regex
- Regular Expression to match only alphabetic characters
- Using alternation or character class for single character matching?
- How to match digits in regex in bash script
- Why does strsplit use positive lookahead and lookbehind assertion matches differently?
- Use regular expression to match ANY Chinese character in utf-8 encoding
- Regular Expression Lookbehind doesn’t work with quantifiers (‘+’ or ‘*’)
- sed one-liner to convert all uppercase to lowercase?
- Remove numbers from alphanumeric characters
- Regular Expression Opposite
- Split text by columns in PowerShell
- regular expression capture nth match
- What regex will match every character except comma ‘,’ or semi-colon ‘;’?
- Regex that matches integers in between whitespace or start/end of string only
- Can I use Perl regular expressions to match balanced text?
- replace a unknown string between two known strings with sed
- Regex to match an ISO 8601 datetime string
- Match Sequence using RegEx After a Specified Character
- Nginx location “not equal to” regex
- How to capture multiple regex matches, from a single line, into the $matches magic variable in Powershell?
- How to escape dollar sign ($) in a string using perl regex
- hgignore: help ignoring all files but certain ones
- Guide on how to use regex in Nginx location block section?