johnsmith153 Posted March 12, 2011 Share Posted March 12, 2011 I'm sure this is pretty simple when you know how. Quote Link to comment https://forums.phpfreaks.com/topic/230466-how-would-i-check-for-html-or-web-addresses-in-a-text-string/ Share on other sites More sharing options...
RussellReal Posted March 12, 2011 Share Posted March 12, 2011 regular expressions Quote Link to comment https://forums.phpfreaks.com/topic/230466-how-would-i-check-for-html-or-web-addresses-in-a-text-string/#findComment-1186787 Share on other sites More sharing options...
Scotty2024 Posted March 12, 2011 Share Posted March 12, 2011 If you know the string you want to check for, use a regular expression with preg_match. Quote Link to comment https://forums.phpfreaks.com/topic/230466-how-would-i-check-for-html-or-web-addresses-in-a-text-string/#findComment-1186789 Share on other sites More sharing options...
johnsmith153 Posted March 12, 2011 Author Share Posted March 12, 2011 Any sample code to start me off? Would I just check for < and > or more (HTML)? Quote Link to comment https://forums.phpfreaks.com/topic/230466-how-would-i-check-for-html-or-web-addresses-in-a-text-string/#findComment-1186791 Share on other sites More sharing options...
BandonRandon Posted March 13, 2011 Share Posted March 13, 2011 This may be helpful http://www.the-art-of-web.com/php/parse-links/ Quote Link to comment https://forums.phpfreaks.com/topic/230466-how-would-i-check-for-html-or-web-addresses-in-a-text-string/#findComment-1186908 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.