Code Generator Regex Debugger Export Matches Sponsors There are currently no sponsors. Become a sponsor today! If you're running an ad blocker, consider whitelisting regex101 to support the website. Read more. Explanation / (\d)(?<!(?=\1)..)(?=(\1*)(?!\1).*(?!\1).\1\2(?