Search smart in VSCode using regex
So I have used the regex option in the VSCode search feature like below:
Cmd+F to show the search bar
Select regex option
:\s\b(curr.\w+)\b,in search input and type
: "mock",in replace input box
Explanation for the above regex:
\s empty one space
\b word boundary starts and ends
\w any length word
+plus a quantifier that matches one or more occurrences of the preceding element.
Have a happy regex search.
Thanks for reading!