Re: likeIgnoreCase

Michael Gentry <[email protected]>
Newsgroups gmane.comp.java.cayenne.user
Message-ID <CAOy5kzMKaddG+aJudObJ76uoTkS3mkjurVP1B+UODFu_Boc2qg@mail.gmail.com>
I've never used "?s" personally, but I'd try at the beginning of your
expression string first.  It is supposed to tell the Pattern to treat the
string as a single line...


On Thu, Apr 16, 2020 at 11:24 AM Lon Varscsak <[email protected]>
wrote:

> It's simply %string%.  I can try that.
>
> On Thu, Apr 16, 2020 at 7:21 AM Michael Gentry <[email protected]>
> wrote:
>
> > Hi Lon,
> >
> > What does your pattern look like?  Did you try adding a "?s" to your
> > expression?
> >
> >
> > On Wed, Apr 15, 2020 at 11:05 PM Lon Varscsak <[email protected]>
> > wrote:
> >
> > > Hey all, trying to use likeIgnoreCase on an in-memory list and it
> appears
> > > not to work if there is a new line in the text.  The Pattern would need
> > > Pattern.DOTALL as a flat to work properly. Would you consider this a
> bug?
> > >
> > > -Lon
> > >
> >
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.