B
BMermuys
Hi,
string test="dit is een test";
bool bMatch = Regex.IsMatch( test, "^([^wi]|)*$" );
after executing, the bMatch is false
The pattern is not optimized and seems a little stupid. But for large regex
expressions using smaller strings to build it, the same problem could arise.
First there is a character group which includes all character except 'wi',
but then there's an or with an 'i' character.
So as net result, only the w shouldn't be matched, the input string doesn't
contain a 'w', so it should match.
In perl this matches.
Can anyone conform this is a bug or I'm missing something ?
TIA
Greetings
string test="dit is een test";
bool bMatch = Regex.IsMatch( test, "^([^wi]|)*$" );
after executing, the bMatch is false
The pattern is not optimized and seems a little stupid. But for large regex
expressions using smaller strings to build it, the same problem could arise.
First there is a character group which includes all character except 'wi',
but then there's an or with an 'i' character.
So as net result, only the w shouldn't be matched, the input string doesn't
contain a 'w', so it should match.
In perl this matches.
Can anyone conform this is a bug or I'm missing something ?
TIA
Greetings