Here is a design though: For example is I put a link such as
http://example.com
in textarea. How do I get PHP t
You guyz are talking way to advance and complex stuff which is good for some situation, but mostly we need a simple careless solution. How about simply this?
preg_replace('/(http[s]{0,1}\:\/\/\S{4,})\s{0,}/ims', '$1 ', $text_msg);
Just try it and let me know what crazy url it doesnt satisfy.