From: | "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com> |
---|---|
To: | Mark Williams <markwillimas(at)gmail(dot)com> |
Cc: | "pgsql-sql(at)lists(dot)postgresql(dot)org" <pgsql-sql(at)lists(dot)postgresql(dot)org> |
Subject: | Re: Regular Expressions |
Date: | 2018-11-04 19:25:21 |
Message-ID: | CAKFQuwYrJxdyXKGB3SYU1Z+=wWupZJ_-kTNb4Ta=D2M2VQSQaQ@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
On Sunday, November 4, 2018, Mark Williams <markwillimas(at)gmail(dot)com> wrote:
>
> I can’t figure out how to search myfield for all instances which contain
> “text1” AND “text2”.
>
> In other words | is the OR operator. What is the AND operator. Tried + and
> whilst that executes, it doesn’t return matching fields.
>
> =====================
>
> Myfield ~* ‘text1’ AND myfield ~* ‘text2’
>
> There is no convenient concept of AND in the sense you want it in Regular
> Expressions and “+” has its own meaning of “one or more of the previous
> item”.
>
> David J.
>
>
>
From | Date | Subject | |
---|---|---|---|
Next Message | Mark Williams | 2018-11-04 19:43:26 | RE: Regular Expressions |
Previous Message | A. Sasaki | 2018-11-04 19:20:42 | Re: Regular Expressions |