firasdib / Regex101

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

Incorrectly interprets "except" [A-Z-[QVX]] #1877

Closed Ian1971 closed 2 years ago

Ian1971 commented 2 years ago

Bug Description

Seems to incorrectly interpret [A-Z-[QVX]] which should be a char A-Z except Q, V or X

Reproduction steps

  1. Set reg ex as [A-Z-[QVX]]
  2. Try and match it

Expected Outcome

It should match all chars A-Z but not Q V or X

Browser

Edge 104.0.1293.63

OS

Window 10

working-name commented 2 years ago

Hi @Ian1971

Can you please share a regex101.com link with an example? I tried it out myself and cannot reproduce it yet.

Ian1971 commented 2 years ago

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

firasdib commented 2 years ago

You need to select a flavor that supports the syntax, like Java.

Vänliga hälsningar / Best regards,

Firas Dib

On 25 Aug 2022, at 17:25, Ian Cox @.***> wrote:

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

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.

working-name commented 2 years ago

Or .NET.

Ian1971 commented 2 years ago

ah yes. Thanks I'll close the issue.