Regular Expression Search Issue with Match Case

SyntaxEditor for Windows Forms Forum

Posted 14 years ago by Boyd - Automated Software Testing Consultant / 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 14 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 (v2018.1 build 0341) was released 8 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.