Re: Regex for Word space Word space Word .... - Mailing list pgsql-general

From Saurabh Agrawal
Subject Re: Regex for Word space Word space Word ....
Date
Msg-id CAL1UH0t4w580Nzek2eqM2YXgW5HZuoTr+NsxYGKRz3zgRp_dHg@mail.gmail.com
Whole thread Raw
In response to Re: Regex for Word space Word space Word ....  (Shaozhong SHI <shishaozhong@gmail.com>)
List pgsql-general

I was trying to make it to match words starting capital letter only.


 

Regards,
David

On Tue, 23 Nov 2021 at 10:59, chlor <hans.schou@gmail.com> wrote:
On Tue, Nov 23, 2021 at 11:51 AM Shaozhong SHI <shishaozhong@gmail.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]+

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


And try also this editor to learn regex

./hans

pgsql-general by date:

Previous
From:
Date:
Subject: PQexecParams, placeholders and variable lists of params
Next
From: Andreas Joseph Krogh
Date:
Subject: Re: Regex for Word space Word space Word ....