#1283: Allow extraction of subpatterns in regex validator
-------------------------+--------------------------------------------------
Reporter: david | Owner: david
Type: enhancement | Status: closed
Priority: normal | Milestone: 1.0.4
Component: validation | Version: 1.0.3
Severity: normal | Resolution: fixed
Keywords: | Has_patch: 0
-------------------------+--------------------------------------------------
Comment(by david):
Note the example pattern is incorrect, should be
{{{#^\s*(?'user'.+?)(@yourcompany\.com)?\s*$#u}}} so the named subpattern
is ungreedy
--
Ticket URL: <http://trac.agavi.org/ticket/1283#comment:3>
Agavi <http://www.agavi.org/>
An MVC Framework for PHP5
_______________________________________________
Agavi Tickets Mailing List
[email protected]
http://lists.agavi.org/mailman/listinfo/tickets