andgineer / TRegExpr

Regular expressions (regex), pascal.
https://regex.sorokin.engineer/en/latest/
MIT License
174 stars 63 forks source link

[.] without escaping should be metachar and not just dot itself #160

Closed Alexey-T closed 4 years ago

Alexey-T commented 4 years ago

@andgineer @SlMaker - your opinion? I can fix. if you find info about other engines

SlMaker commented 4 years ago

on https://regex101.com/r/qr9Zbh/1 [.] matches only the dot for all flavours

Alexey-T commented 4 years ago

@andgineer So maybe leave code as is? its now as in all flavors?

masterandrey commented 4 years ago

Ok.. but strange anyway - [\w] works as expected - any word letter..

Alexey-T commented 4 years ago

because of my adddions - I added that \w \d \W \D \s \S work in [ ].

SlMaker commented 4 years ago

So nothing needs to be changed?

Alexey-T commented 4 years ago

yes

Alexey-T commented 4 years ago

@andgineer closing it?

andgineer commented 4 years ago

https://regex.sorokin.engineer/en/latest/regular_expressions.html#predefined-character-classes

You may use \w, \d and \s within user character classes.

yes - I even documented that by your request but forget that ;)

Alexey-T commented 4 years ago

Forget-forgot-forgotten :)