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 Quote 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 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 Quote Link to comment https://forums.phpfreaks.com/topic/138603-solved-preg_match-with/#findComment-724807 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.