dreamci Posted December 28, 2008 Share Posted December 28, 2008 hello i am using this code preg_match("~<item><title>$title</title>\s*<link>(.*?)</link>~i", $go, $link); it works fine but if there is an + in the title then it wont work, does anyone know how to solve this, thanks Link to comment https://forums.phpfreaks.com/topic/138603-solved-preg_match-with/ Share on other sites More sharing options...
rhodesa Posted December 28, 2008 Share Posted December 28, 2008 pass it through http://us2.php.net/preg_quote Link to comment https://forums.phpfreaks.com/topic/138603-solved-preg_match-with/#findComment-724773 Share on other sites More sharing options...
dreamci Posted December 28, 2008 Author Share Posted December 28, 2008 thanks much it works now Link to comment https://forums.phpfreaks.com/topic/138603-solved-preg_match-with/#findComment-724807 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.