Replace number in a string using regex or something else
Posted
by Krishna
on Stack Overflow
See other posts from Stack Overflow
or by Krishna
Published on 2010-04-20T18:42:22Z
Indexed on
2010/04/20
18:43 UTC
Read the original article
Hit count: 332
JavaScript
|regex
Hi,
I am not so good with regex. I am struggling to find a solution for a small functionality.
I have a ajax response which returns a string like "Your ticket has been successfully logged. Please follow the link to view details 123432."
All I have to do is replace that number 123432 with <a href="blablabla.com?ticket=123432">
using javascript.
© Stack Overflow or respective owner