I want to take a Twitter text like this:
s = "Today 09/07 sunday http://t.co/123 - AC/DC COVER Opening and DVD - woman R$10 / man R$15. - http://migre.me/59qwc"
and turn it into this..
s = "Today 09/07 sunday LINK - AC/DC COVER Opening and DVD - woman R$10 / man R$15. - LINK"
This snippet is failing for some reason, please, some help
s.replace(/(http\:.*)\s/g , 'LINK')
http://migre.me/59qwcbecause there is no space after it.