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
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You are not very clear, so I’ll assume those numbers are a variable.
So your pattern is
?pm=nI’ll also assume
.pngextensionswhich means this regex will find them
/\?pm=\d+(?!\.png)/and replace with
$0.png