sphinx Posted October 14, 2011 Share Posted October 14, 2011 Hi there, I'm trying to preg match information on a page that is laid out like: <b>5</b> I'm attempting to preg match it via: preg_match('/<b>([0-9]+)</b>/', $page_contents, $matches); I'm aware I need to backslash it somewhere, I've tried in multiple areas, but I'm still getting an Unknown multiplier error. Regards Quote Link to comment https://forums.phpfreaks.com/topic/249144-preg_match-a-number-with-tags/ Share on other sites More sharing options...
ianco Posted October 14, 2011 Share Posted October 14, 2011 should it be /\<\b\>([0-9]+)\<\/\b\>/ ? Quote Link to comment https://forums.phpfreaks.com/topic/249144-preg_match-a-number-with-tags/#findComment-1279438 Share on other sites More sharing options...
sphinx Posted October 14, 2011 Author Share Posted October 14, 2011 hmm it doesnt give an error but it is blank in regards to this info: http://beta.zixt.co.uk:8000/index.html?sid=1 I'm trying to grab the listener peak. Many thanks Quote Link to comment https://forums.phpfreaks.com/topic/249144-preg_match-a-number-with-tags/#findComment-1279443 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.