Re: Match 2 words and more

From: Rob Sargent <robjsargent(at)gmail(dot)com>
To: Shaozhong SHI <shishaozhong(at)gmail(dot)com>
Cc: pgsql-general <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: Match 2 words and more
Date: 2021-11-28 00:37:33
Message-ID: 6791C12E-B9A3-4917-9113-186B2F26D708@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> On Nov 27, 2021, at 5:27 PM, Shaozhong SHI <shishaozhong(at)gmail(dot)com> wrote:
>
> 
> this is supposed to find those to have 2 words and more.
>
> select name FROM a_table where "STREET_NAME" ~ '^[[:alpha:]+ ]+[:alpha:]+$';
>
> But, it finds only one word as well.
>
> It appears that regex is not robust.
>
> Can anyone shed light on this?
>
> Regards,
>
Show the results of the query. Describe how those results differ from what you desire or from what you expect.

> David

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Alvaro Herrera 2021-11-28 00:49:07 Re: Match 2 words and more
Previous Message Rob Sargent 2021-11-28 00:32:49 Re: Packaging pgAdmin 4