kevinkhan Posted January 4, 2011 Share Posted January 4, 2011 {"profile_id":100000503667042,"sk":"wall"} im looking for a regular expression to extract the profile id from this... anyideas what is wrong with this preg_match('|{"profile_id":[0-9],"sk":"wall"}|', $page, $match); if(!$match || count($match)<=0) { printEcho("Can not find friend page link."); disconnect($con); exit(0); } $profileId = $match[0]; Quote Link to comment Share on other sites More sharing options...
JAY6390 Posted January 4, 2011 Share Posted January 4, 2011 You need a + after [0-9] Quote Link to comment 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.