EnhanceAnyLexer icon indicating copy to clipboard operation
EnhanceAnyLexer copied to clipboard

RegEx appears to be always case insensitive.

Open BlueEyedFoxUnderscore opened this issue 6 months ago • 1 comments
trafficstars

I don't know if there's any fix for this, but I was trying to detect class names with the following regex: (?<=\s)[A-Z][A-z]* which should check for any space followed by an uppercase character and then a bunch of lowercase characters. Instead, it seems to match all words. I tested a few other case-sensitive regexes (such as [[:u:]] as well as classes like [A] or literals as just A, but it seems like all of these are case insensitive.

BlueEyedFoxUnderscore avatar May 05 '25 22:05 BlueEyedFoxUnderscore

@BlueEyedFoxUnderscore

using the pattern modifier (?-i) before your regex should do what you want. (?-i)(?<=\s)[A-Z][A-z]*

Ekopalypse avatar May 06 '25 08:05 Ekopalypse

This issue has been automatically closed because it was marked as invalid and received no response in 28 days.

github-actions[bot] avatar Jun 06 '25 06:06 github-actions[bot]