Bug #4085: preg_match_all/RegEx
| From: | ralph at ceenet dot com | Date: | Sun, 09 Apr 2000 05:29:46 +0000 |
| Subject: | Bug #4085: preg_match_all/RegEx | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-17758@lists.php.net to get a copy of this message | ||
From: ralph@ceenet.com
Operating system: Linux Slackware 7
PHP version: 3.0.16
PHP Bug Type: Other
Bug description: preg_match_all/RegEx
There appears to be a problem in the regex function preg_match_all:
Here is the exact string that should be plucked from a blob of text:
FORSALE / WIDGET 289031955 $9.00 $15.50 - 1 3 Mar-20-00 Mar-27-00 19:12:49 Ended
$regex = "/ *(FORSALE .+ Ended) */";
preg_match_all($regex,$string,$matches,PREG_SET_ORDER);
preg_match_all will not match beyond WIDGET, the regex "(FORSALE .+ WIDGET)" matches,
"(FORSALE.................)" wont work as well. It appears to blow up at the first sight
of numbers.
I've tried this on 3.0.15, .16 and 4.0RC1, using 2 different machines, and have had the same
results.