VS Code Regex search

Gibin Francis
Nov 5, 2021

--

Recently I met with a situation to find the lines in one file witch matches two strings.

ctrl +F to find in vs code

Select the Regular expression option on the find menu and search with below keyward

word1[\s\S]*word2

you will get lines witch matching both words in it, you can add more based on your need.

--

--

Gibin Francis
Gibin Francis

Written by Gibin Francis

Technical guy interested in MIcrosoft Technologies, IoT, Azure, Docker, UI framework, and more

No responses yet