Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.4.0

Bug #9231 Non-greedy regex extension
Submitted: 2006-11-04 00:36 UTC
From: tom at inflatablecookie dot com Assigned: cellog
Status: Closed Package: PHP_LexerGenerator (version 0.3.0)
PHP Version: 5.1.5 OS: Win XP SP2
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 42 - 38 = ?

 
 [2006-11-04 00:36 UTC] tom at inflatablecookie dot com (Tom Wright)
Description: ------------ When trying to use a ? character after a quantifier to stop the regex from being greedy, the compiler dies reporting "Unexpected MULTIPLIER(?)". I hope I haven't missed the mark on this one - I'm no regex guru! Test script: --------------- /*!lex2php %input $this->data %counter $this->N %token $this->token %value $this->value %line $this->line T_INLINE_HTML = /(\s|.)+?(?=<[?%])/

Comments

 [2006-11-04 00:40 UTC] tom at inflatablecookie dot com
Edit : Changed summary - firefox reverted it back to the last bug for some reason
 [2006-12-16 01:39 UTC] cellog (Greg Beaver)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.