firasdib / Regex101

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

C# range with shorthand escape sequences #1969

Closed stevenh closed 1 year ago

stevenh commented 1 year ago

Bug Description

If you create a regexp range with a shorthand escape sequence in C# it incorrectly fails with:

You cannot create a range with shorthand escape sequences

Reproduction steps

  1. Syntax: C#
  2. Regexp: ([\d-z]+)

Expected Outcome

Valid regexp

Browser

Chrome: 108.0.5359.126

OS

Windows 11

This can be validated with fiddler

firasdib commented 1 year ago

Thank you for the report, I'll have this fixed in the next release.