Match 2 words and more - Mailing list pgsql-general

From Shaozhong SHI
Subject Match 2 words and more
Date
Msg-id CA+i5Jwbzej+34xLZvyVj1rM=SrXO1f+P4scaJUA2Y4xQfAJ0=A@mail.gmail.com
Whole thread Raw
Responses Re: Match 2 words and more  (Rob Sargent <robjsargent@gmail.com>)
Re: Match 2 words and more  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
Re: Match 2 words and more  (Guyren Howe <guyren@gmail.com>)
Re: Match 2 words and more  ("David G. Johnston" <david.g.johnston@gmail.com>)
Re: Match 2 words and more  ("Peter J. Holzer" <hjp-pgsql@hjp.at>)
Re: Match 2 words and more  ("Peter J. Holzer" <hjp-pgsql@hjp.at>)
Re: Match 2 words and more  (Thomas Markus <t.markus@proventis.net>)
List pgsql-general
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,

David

pgsql-general by date:

Previous
From: Blake McBride
Date:
Subject: Re: Packaging pgAdmin 4
Next
From: Rob Sargent
Date:
Subject: Re: Packaging pgAdmin 4