I am having trouble getting a regex to work. This is the string.
"some text would be here and Blah St:39.74908:-104.99482:272~Turn right over here"
I need to remove the
:39.74908:-104.99482:272~
part of the string. I am using jQuery if that helps.
var str = "some text would be here and Blah St:39.74908:-104.99482:272~Turn right over here";
alert(str.replace(/:[^~]+~/g, ""));
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With