Multiline regular expressions in Visual Studio code

I can’t figure out how to make the regular expression match stop at the end of the line at the end of the file in VS Code? Is this a limitation of the tool, or is there some kind of pattern that I don't know about?

+6
source share
1 answer

It seems that CR does not match [\s\S] . Add \r to this character class:

 [\s\S\r]+ 

will match any 1+ characters.

enter image description here

+7
source

Source: https://habr.com/ru/post/1013161/


All Articles