[rules-users] is "==" case sensitive

Michael Neale michael.neale at gmail.com
Tue Jan 9 08:39:42 EST 2007


I don't think is general enough to have a special operator just for this.

A general solution is pluggable operators, but not timeframe set for that
(or even if it is a good idea).

On 1/8/07, rules-users at lists.jboss.org <rules-users at lists.jboss.org> wrote:
>
> maybe in the next release something similar to ignorecase could be added
> as an operator...
>
> Joel G. Rivera-Gonzalez
> PRT
>
> "The first 90% of a project takes 90% of the time, the last 10% takes the
> other 90% of the time" - Murphy's Law
>
> ----- Original Message ----
> From: "rules-users at lists.jboss.org" <rules-users at lists.jboss.org>
> To: rules-users at lists.jboss.org
> Sent: Monday, January 8, 2007 1:24:17 PM
> Subject: Re: [rules-users] is "==" case sensitive
>
> if you can do it with a regex (which I am not sure if you can) then you
> can use the "matches" operator.
>
> Otherwise you can do it with a predicate:
>
> Something(a:field -> (a.equalsIgnoreCase("some string")) )
>
>
>
> On 1/8/07, rules-users at lists.jboss.org <rules-users at lists.jboss.org >
> wrote:
> >
> > what i would do to make in not case sensitive (like
> > string1.equalsIgnoreCase(string2))?
> >
> >
> > Joel G. Rivera-Gonzalez
> > PRT
> >
> > "The first 90% of a project takes 90% of the time, the last 10% takes
> > the other 90% of the time" - Murphy's Law
> >
> > ----- Original Message ----
> > From: "rules-users at lists.jboss.org" < rules-users at lists.jboss.org>
> > To: rules-users at lists.jboss.org
> > Sent: Monday, January 8, 2007 10:49:08 AM
> > Subject: Re: [rules-users] is "==" case sensitive
> >
> > For Strings I presume ? Yes it should be case sensitive.
> >
> > On 1/8/07, rules-users at lists.jboss.org < rules-users at lists.jboss.org>
> > wrote:
> > >
> > > I dont find anything on the documentation...and i think it is
> > > important to know...
> > >
> > > thanks !
> > >
> > >
> > >
> > > Joel G. Rivera-Gonzalez
> > > PRT
> > >
> > > "The first 90% of a project takes 90% of the time, the last 10% takes
> > > the other 90% of the time" - Murphy's Law
> > >
> > > _______________________________________________
> > > rules-users mailing list
> > > rules-users at lists.jboss.org
> > > https://lists.jboss.org/mailman/listinfo/rules-users
> > >
> > >
> > >
> > _______________________________________________
> > rules-users mailing list
> > rules-users at lists.jboss.org
> > https://lists.jboss.org/mailman/listinfo/rules-users
> >
> >
> > _______________________________________________
> > rules-users mailing list
> > rules-users at lists.jboss.org
> > https://lists.jboss.org/mailman/listinfo/rules-users
> >
> >
> >
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20070109/1a995a5c/attachment.html 


More information about the rules-users mailing list