Re: [rules-users] capturing matches from regular expressions?

2007-09-22 Thread Edson Tirelli
At this time, there is no such feature. May I ask you please to open a JIRA feature request for it? The way I see it, we would need to create a feature to allow binding of variables to arbitrary expressions in the LHS and allow this binds to be used in the RHS. []s Edson 2007/9/22

Re: [rules-users] capturing matches from regular expressions?

2007-09-22 Thread Godmar Back
On 9/22/07, Edson Tirelli <[EMAIL PROTECTED]> wrote: > >Sorry, nope. Is there a use case for that? > For instance, I'd like to write a rule where I need to be alerted of all facts where a specific field is of the form "(.*)Suffix". The action I'm then taking requires the "(.*)" as a parameter

Re: [rules-users] capturing matches from regular expressions?

2007-09-22 Thread Edson Tirelli
Sorry, nope. Is there a use case for that? []s Edson 2007/9/22, Godmar Back <[EMAIL PROTECTED]>: > > Hi, > > is there a syntax to capture the match(es) from a regular expression > inside a "matches" condition in a when statement, similar to > Matcher.group(int) in Java's regexps or $1, $

[rules-users] capturing matches from regular expressions?

2007-09-21 Thread Godmar Back
Hi, is there a syntax to capture the match(es) from a regular expression inside a "matches" condition in a when statement, similar to Matcher.group(int) in Java's regexps or $1, $2, $3 in Perl work? Thanks. - Godmar ___ rules-users mailing list rules-