preg_match help

    Date: 05/23/06 (PHP Community)    Keywords: no keywords

    hi folks, i've got a line of code which calls preg_match()

    preg_split("/(%%{1,2}(\d[0-9])%%{1,2})/", $data, -1, PREG_SPLIT_NO_EMPTY);

    however for some reason, this seems to be returning a whole document to me instead of what i'm hoping for. in the document, i've got number scattered about like so "".

    i'm actually trying to get it to return an like array([0] => 512, [1] => 513, [3] => 514). however i only seem to be getting a whole documents worth of data, what am i doing wrong? i've never been good with regex.

    Source: http://community.livejournal.com/php/452407.html

« question || PHP, Permissions, and You »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home