This is for Visual Studio code, but I'm not sure how relevant that is.
Here's my regex: cost:(\d\d)
I'm trying to multiply that number by 100. e.g., change cost:25
to cost:2500
But if I try this replacement, it thinks I'm asking for group #100, instead of group #1 and two zeros: cost:$100
changes cost:25
to cost:$100
. If I put a space after the two zeros, it replaces it with this: cost:25 00
. Is there a way to tell the regex engine where the group name stops?
I've tried replacing with cost:${1}00
, but that doesn't work. It changes it to cost:${1}00
: