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  


 [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] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!