180
rated 0 times
[
182]
[
2]
/ answers: 1 / hits: 24450
/ 15 Years ago, sat, june 6, 2009, 12:00:00
I have a string in JavaScript and it includes an a
tag with an href
. I want to remove all links and the text. I know how to just remove the link and leave the inner text but I want to remove the link completely.
For example:
var s = check this out <a href='http://www.google.com'>Click me</a>. cool, huh?;
I would like to use a regex so I'm left with:
s = check this out. cool, huh?;
More From » regex