I would like to parse a string that contains numbers, to make each number clickable with a hyperlink that contains that number, for a number of cells in a table.
I have a string that could be formated something like: 12345, 54321, 13542
or 12345 and 54321 and 13542
or even Number12345
etc. There is no limit to the amount of numbers within the cell.
I would like for these numbers to be hyperlinks something like:
http://www.example.com/example?q=12345
http://www.example.com/example?q=54321
http://www.example.com/example?q=13542
I'd be grateful to hear about any way in JS/JQuery to do this.
Thanks!