I am reading a tutorial , following examples in regular expressions and in a Perl Example they show that
is not the same as however in UE 14.10.0.1024 I see the latter matches exactly what the first expression matches and not what I expected it to match.
Example
8x8
The first regex should match the x and indeed it does. However the second regex should match the first 8 and it does not. It again matches the x. Am I correct that this is a problem in the regex engine for Perl ?
Code: Select all
[^\d\s]
Code: Select all
[\D\S]
Example
8x8
The first regex should match the x and indeed it does. However the second regex should match the first 8 and it does not. It again matches the x. Am I correct that this is a problem in the regex engine for Perl ?