Re: Regex for Word space Word space Word ....

From: chlor <hans(dot)schou(at)gmail(dot)com>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Regex for Word space Word space Word ....
Date: 2021-11-23 10:59:03
Message-ID: CAApBw35LG3hg=YS=G5piOiSgQ45c-CHEqMPobF-k2NFj6vdXNQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, Nov 23, 2021 at 11:51 AM Shaozhong SHI <shishaozhong(at)gmail(dot)com>
wrote:

> I tried nested regex '[[A-Z][a-z] ]+[[A-Z][a-z]]' but it did not work.
>

[A-Z][a-z]+ +[A-Z][a-z]+
will match 'Hello World', but not 'Hello world'. Is that what you want?

Try this instead
[A-Za-z]+ +[A-Za-z]+

And try also this editor to learn regex
https://regex101.com/

./hans

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Shaozhong SHI 2021-11-23 11:25:29 Re: Regex for Word space Word space Word ....
Previous Message Shaozhong SHI 2021-11-23 10:51:10 Re: Regex for Word space Word space Word ....