Laur's blog
Sign in Subscribe

multiline

A collection of 1 post
Multiline Regex in Visual Studio Code
code

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: ^\[.*(\r?\n\s*)* HTH,
Jan 6, 2017
Page 1 of 1
Laur's blog © 2025
  • Sign up
Powered by Ghost