Jump to content

wuwei101

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

wuwei101's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Thanks.  I've read the documentation in the php manual for preg_match_all and I'm confused about what the set of 2 flags means.
  2. hello, Here's the code I have: [code]if (! PEAR::isError($req->sendRequest())) {                 if (preg_match('/edg176\/(\d+)/', $req->getResponseBody(), $matches)) {                         $xangaPostID = $matches[1];[/code] I am trying to parse the post ID number from my xanga page.  I am not sure why the (\d+) isn't working , since the post ID is simply everything after the edg176/. The whole url usually looks like this:  http://www.xanga.com/edg176/nnn/xxx.html I'm trying to get the nnn out of the posts. Thanks
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.