RE: [PHP] REG_BADRPT error for regex

From: Date: Wed, 12 Jul 2000 13:23:02 +0000
Subject: RE: [PHP] REG_BADRPT error for regex
Groups: php.general 
Request: Send a blank email to php-general+get-6134@lists.php.net to get a copy of this message
> However, I'm getting an error I do not understand > on that line: > Warning: REG_BADRPT in > /test/newsedge/newsedge.php3 on line 16 > What does that mean? My regex is bad? What > should I be doing different, if anything? "REG_BADRPT Indicates a ? (question mark), * (asterisk), or + (plus sign) not preceded by valid basic or extended regular expression." I found the above as a description of what my error represents. However, I do not understand what it means. My regex is: eregi( "<rec>.*?<\/rec>", $news, $newsRecs ); How is "<\/rec>" not a 'valid basic or extended regular expression'? I'm using PHP3.0.5 so I cannot use the preg() functions and I really need to get some sort of regex that does what I need; some- thing that the regex above should be able to do. Is there a work around? Or something? Chris

« previous php.general (#6134) next »