From: | Saurabh Agrawal <mail(at)saurabhagrawal(dot)net> |
---|---|
To: | Shaozhong SHI <shishaozhong(at)gmail(dot)com> |
Cc: | chlor <hans(dot)schou(at)gmail(dot)com>, pgsql-general <pgsql-general(at)lists(dot)postgresql(dot)org> |
Subject: | Re: Regex for Word space Word space Word .... |
Date: | 2021-11-23 12:08:38 |
Message-ID: | CAL1UH0t4w580Nzek2eqM2YXgW5HZuoTr+NsxYGKRz3zgRp_dHg@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
>
>
> I was trying to make it to match words starting capital letter only.
>
Does this work? https://regex101.com/r/nf4HCN/1
>
> Regards,
> David
>
> On Tue, 23 Nov 2021 at 10:59, chlor <hans(dot)schou(at)gmail(dot)com> wrote:
>
>> 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
>>
>>
From | Date | Subject | |
---|---|---|---|
Next Message | Andreas Joseph Krogh | 2021-11-23 12:32:58 | Re: Regex for Word space Word space Word .... |
Previous Message | tomas | 2021-11-23 11:37:15 | PQexecParams, placeholders and variable lists of params |