firasdib / Regex101

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

Rust named capture groups appear as errors #2220

Closed esemeniuc closed 4 months ago

esemeniuc commented 5 months ago

Bug Description

This example fails in regex101: https://docs.rs/regex/latest/regex/#example-named-capture-groups

Docs: https://docs.rs/regex/latest/regex/#grouping-and-flags

Reproduction steps

I enter Homer (?<middle>.)\. Simpson using the rust option, and I see the following:

image

Expected Outcome

I expect to see a capture group for the middle name.

Browser

Firefox 122.0

OS

Arch Linux, kernel 6.6

firasdib commented 4 months ago

See https://github.com/firasdib/Regex101/issues/2167