What will be the regular expression to match {0} in a piece of text?
so that if I have
var temp = 'this is my {0} attempt';
I could use that regular expression in javascript to get the {0} out of ‘temp’, and replace with whatever text I want.
Thanks
Regex is definitely not needed for this!
Ofcourse, you can do the following as well:
Response to @Giacomo:
will not replace anything.
{\d+}is treated as a string and not regex