Multiline Regex in Visual Studio Code

Setting up a multi-line regular expression in VS code is done by explicitly matching the CR/LF characters using \r?\n.

For example, if I want to find all lines starting with a [, including subsequent blank lines, I can do:

HTH,


A little experiment: If you find this post and ad below useful, please check the ad out :-)




Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Scroll to top