Hey everyone,
I'm looking for a Regex that will take this:
?pm=512862895835
And turn it into this:
?pm=512862895835.png
I'd be running the expression on HTML.
Thanks,
rocky
Hey everyone,
I'm looking for a Regex that will take this:
?pm=512862895835
And turn it into this:
?pm=512862895835.png
I'd be running the expression on HTML.
Thanks,
rocky
You are not very clear, so I'll assume those numbers are a variable.
So your pattern is
?pm=n
I'll also assume
.png
extensionswhich means this regex will find them
/\?pm=\d+(?!\.png)/
and replace with
$0.png