Vote count:
0
I have a regex pattern like this:
([0-9]*)xyz
I wish to do substitution like this:
$10xyz
The problem is that the $1 is a capture group and the 0 is just a number I want to put into the substitution. But regex thinks I'm asking for capture group $10 instead of $1 and then a zero after it.
How do I reference a capture group and immediately follow it with a number?
asked 33 secs ago
Regex replace with number after capture group?
Aucun commentaire:
Enregistrer un commentaire