firasdib / Regex101

This repository is currently only used for issue tracking for www.regex101.com
3.26k stars 199 forks source link

Javascript backreference vs octal character #2193

Closed sancarn closed 9 months ago

sancarn commented 9 months ago

Bug Description

The \01 in the following regex: (.)\01 is listed in Regex101 as "Backreference: Matches the same text as the 1st capturing group". But the evaluation indicates this is not the case, and actually it matches any character followed by an octal?

Reproduction steps

image

working-name commented 9 months ago

https://regex101.com/r/qA4E2s/1

firasdib commented 9 months ago

Thank you, fixed locally!