Hi,
I am new to this area. Thank you very much for your reply!
This is current script
brandName matches "(?i)(.*cyber.*|.*internet.*|.*pizza.*|.*restaurant.*|.*sushi.*)
So this matches every string containing sushi.
Joa Sushie Café
Java Sushi
Sushi Blvd
Japanese Sushi Bar
But I only want to match the word sushi. This means " Joa Sushie Café" will not
be included.
Actually I am looking for word match. What is the best way to include above words?
brandName == "(?i)(.*cyber.*|.*internet.*|.*pizza.*|.*restaurant.*|.*sushi.*)???
Best
Stacy
-----Original Message-----
From: rules-users-bounces(a)lists.jboss.org [mailto:rules-users-bounces@lists.jboss.org] On
Behalf Of Wolfgang Laun
Sent: Thursday, March 27, 2014 12:26 AM
To: Rules Users List
Subject: Re: [rules-users] How to do word match in drools?
You can use == to compare strings.
For a more comprehensive answer, ask a more detailed question.
-W
On 26/03/2014, Yuan, Stacy [DBA] <stacyy(a)telenav.com> wrote:
For example, word sushi
I do not want sushie show up and shsushi show up when we do drools match.
Thanks
Stacy
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users