johnsmith153 Posted March 12, 2011 Share Posted March 12, 2011 I'm sure this is pretty simple when you know how. 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 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. 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)? 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/ 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
Archived
This topic is now archived and is closed to further replies.