Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 99157

How to insert $ before a string with regular expression in VScode?

$
0
0

With this regular expression

enter image description here

VSCode could replace

# W1 blaAAA
# W2 blaBBB
# W3 blaCCC

with

# W1$ blaAAA
# W2$ blaBBB
# W3$ blaCCC

namely, appending a "$" at the end of W\d{1,2}.

Now, I am trying to insert "$" before W\d{1,2},

for example, replace "W1" with "$W1", I tried $$1 and \$$1, none of them worked.

Any clue?


Viewing all articles
Browse latest Browse all 99157

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>