[rules-users] Drools 5.0 concat string in matches of regular expression

Edson Tirelli ed.tirelli at gmail.com
Wed Jan 13 11:28:57 EST 2010


   It should work... what error do you see?

   Edson

2010/1/13 Lukas Svoboda <lukasvoboda at googlemail.com>

>
> How can I get drools 5.0.1 compiled if I have regular expression matches
> part
> concat from static text + dynamic string?
>
> See example:
>                onBlackList : ArrayList( size > 0 )
>               from collect( BlacklistItemDRL( blacklistItemType matches
> "MAIL_DOMAIN" && customer.currentContactInformation.partyEmailAddress.email
> matches (".*@" + blacklistItemValue + ".*") )
>                             from blackList.getItems())
>
>
> Problem is when I'm trying to do email matches (".*@" + blacklistItemValue
> +
> ".*"), which worked in drools 4.0.7 but can't be compiled now in 5.0.1
>
> Is there any way how to use in matches part of reg exp dynamic property
> value plus static string?
>
> Thanks,
> Lukas
> --
> View this message in context:
> http://n3.nabble.com/Drools-5-0-concat-string-in-matches-of-regular-expression-tp119197p119197.html
> Sent from the Drools - User mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>



-- 
 Edson Tirelli
 JBoss Drools Core Development
 JBoss by Red Hat @ www.jboss.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20100113/ce456b42/attachment.html 


More information about the rules-users mailing list