Need help with regex (spaces)
Hi, I have the following code to scan text for URLs and return all the urls in array.
I've been testing this for days but keep not getting anywhere success in tracking front and trailing spaces.
With this regex, it always fail when I try to type the following:
var result = text.match("[^\\s\(\)\"\'<>\,\!]+(((ht|f)tp(s?)\://)?(www.|
http://www.domain.com/test?id=dsd sakads, http://www.xample.com/test?id=dsd
With the "sakads". How do I remove any text and spaces in between URLs?
Thanks in advanced.