[jboss-jira] [JBoss JIRA] Commented: (JBRULES-1226) allow capture of match groups in 'matches' clauses

Tom?? Z?lusk? (JIRA) jira-events at lists.jboss.org
Tue Jul 15 07:17:27 EDT 2008


    [ http://jira.jboss.com/jira/browse/JBRULES-1226?page=comments#action_12421330 ] 
            
Tom?? Z?lusk? commented on JBRULES-1226:
----------------------------------------

Since this topic is about generalized binding of variables rather than regular expressions, I would appreciate such a functionality too.
It would be very helpful to write something like this:

when Fact($matcher : Pattern.compile("(a*)b(c*)").matcher(value), eval($matcher.matches()))
then System.out.println(matcher.group(1));

Or may be even sugar:

when Fact($matcher : value matches "(a*)b(c*)") 
then System.out.println(matcher.group(1));

> allow capture of match groups in 'matches' clauses
> --------------------------------------------------
>
>                 Key: JBRULES-1226
>                 URL: http://jira.jboss.com/jira/browse/JBRULES-1226
>             Project: JBoss Drools
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 4.0.1
>            Reporter: Godmar Back
>         Assigned To: Mark Proctor
>
> Please add a way to capture match groups in matches clauses.
> See http://lists.jboss.org/pipermail/rules-users/2007-September/003227.html

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list