mysterbx Posted February 5, 2008 Share Posted February 5, 2008 Hello, How can I make a preg_match_all string that would search for links preg_match_all("#([ \s\n\t\r]|)((ftp|http)://(([\w]+?.|)(imdb.bayw.org|tvrage.com|tv.com|imdb.com|gamespot.com)[\S]{5,150})[^ \>\<\s\'\"\n\r\t<]*)#ise", $fix, $extralinks); and the search the preg_match_all, if it has 3 dots "..." then dont show the result, else show it Link to comment https://forums.phpfreaks.com/topic/89604-solved-preg-match-all-find-3-dots/ Share on other sites More sharing options...
monkeytooth Posted February 5, 2008 Share Posted February 5, 2008 Whats an example of a string that you would be looking to hide.. out of curiosity Link to comment https://forums.phpfreaks.com/topic/89604-solved-preg-match-all-find-3-dots/#findComment-459076 Share on other sites More sharing options...
effigy Posted February 5, 2008 Share Posted February 5, 2008 Closed. There's already a topic on this: http://www.phpfreaks.com/forums/index.php/topic,179977.0.html. Link to comment https://forums.phpfreaks.com/topic/89604-solved-preg-match-all-find-3-dots/#findComment-459086 Share on other sites More sharing options...
Recommended Posts