firasdib / Regex101

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

Regex Debugger: show wrong steps for failed atomic group / possessive quantifiers #1879

Closed liudongmiao closed 1 year ago

liudongmiao commented 2 years ago

Bug Description

For non-matched "atomic group", "regex debugger" show wrongs steps.

Reproduction steps

For atomic group:

For possessive quantifiers:

Expected Outcome

Debugger show the same steps as PCRE2.

Browser

N/A

OS

N/A

firasdib commented 1 year ago

This is because the debugger disables some of the native optimizations in the engine, in order to produce the information it does. You should not read into the step counts too much