Regular Expression Search Issue with Match Case

SyntaxEditor for Windows Forms Forum

Posted 19 years ago by Boyd - Sr. Software Developer, Patterson Consulting, LLC
Avatar
I noticed some odd matching with Regular Expression searches when "Match Case" is turned off. Lets say I have the following values:

ab
Ab
aB
AB

And I search for the following RegEx and "MatchCase" is turned OFF:

a[B]

This regex will match on all four items as expected. If I change to the following RegEx and leave "MatchCase" turned off:

a[Bc]

It only matches on "aB" and "AB". The case of "a" is still disregarded, but the case of "B" is now being enforced. The same issue applies when ranges are used within a RegEx like the following:

a[A-Z]


Sorry I missed these things during the 3.0 Beta phase :(

Comments (1)

Posted 19 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Single character classes collapse to a character, which words with case sensitivity. Character classes (2 or more chars in a character class) are not currently paying attention to case sensitivity. This will be fixed for the next maintenance release.


Actipro Software Support

The latest build of this product (v24.1.0) was released 5 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.