![]() |
Parsing URL in text
Hello,
I have paragraphs of text in a database, and I am trying to convert the url's to proper links, e.g. : This site Google is cool would be : This site Google is cool and the same if they had http:// on. So far my code isn't working, so please I would be grateful if someone could help me achieve above. Many Thanks, Steven Gibbons PHP Code:
|
PHP Code:
-m |
Thanks for your reply. I will give it a go.
|
Thanks for your reply. The only problem I am having now is it only works with http:// not just www.
Thanks, Steve |
Well, I suppose you could do this:
PHP Code:
If you're interested; TalkPHP - Search Results Regular-Expressions.info - Regex Tutorial, Examples and Reference - Regexp Patterns Regular Expression Library Regular Expressions Cheat Sheet (V2) - Cheat Sheets - Added Bytes -m |
| All times are GMT. The time now is 02:19 PM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0