Hi guys,
I have a string that contains all text but may also contain a URL, ex:
"This is a test message. If you wish visit the url below\n ok. that's it for now."
I want to be able to find all the URLs (they will always start with http:// and end with a space and replace them with <a href=URL>URL</a> where URL is the URL found
I know this should be possible with the perl pattern matching ~s functions but I have no idea how to approach it.
Thanks!
Luc L.
I have a string that contains all text but may also contain a URL, ex:
"This is a test message. If you wish visit the url below\n ok. that's it for now."
I want to be able to find all the URLs (they will always start with http:// and end with a space and replace them with <a href=URL>URL</a> where URL is the URL found
I know this should be possible with the perl pattern matching ~s functions but I have no idea how to approach it.
Thanks!
Luc L.