regexr
regexr copied to clipboard
Wrong explanation for dot character class
As you can see from the screenshot, when using the dot character class the text shown in the Tools section is wrong. . Matches any character except linebreaks. Equivalent to [^\n\r]. So the text "Dot. Matches any character including line brea... is definitly wrong. Instead of including is has to be except.
This is because you have the s
(aka dotall
) flag enabled, which allows .
to match line breaks. The dynamic hints recognize that, but the documentation is static. We should add a note about dotall to the docs though.