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

2021-11-23 Thread Shaozhong SHI
Hi, David J, Any good example of doing test on array? Regards, David On Tuesday, 23 November 2021, David G. Johnston wrote: > On Tue, Nov 23, 2021 at 2:58 AM Shaozhong SHI > wrote: > >> Is there any regex for Word space Word space Word and more? >> >> > What p

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

2021-11-23 Thread David G. Johnston
On Tue, Nov 23, 2021 at 2:58 AM Shaozhong SHI wrote: > Is there any regex for Word space Word space Word and more? > > What problem are you actually trying to solve? You may find it easier to simply split your string on space and then do tests on elements of the resultant array. David J.

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

2021-11-23 Thread tomas
On Tue, Nov 23, 2021 at 09:58:00AM +, Shaozhong SHI wrote: > Is there any regex for Word space Word space Word and more? It isn't very clear what you want to achieve. From the other mails in this thread I understand that your words start with an uppercase char and continue with lowerc

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

2021-11-23 Thread Andreas Joseph Krogh
På tirsdag 23. november 2021 kl. 12:25:29, skrev Shaozhong SHI < shishaozh...@gmail.com >: It only matches First Street from 'My First Street'. I was trying to make it to match words starting capital letter only. You'll want to include unicode-characters, which

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

2021-11-23 Thread Saurabh Agrawal
> > > 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 wrote: > >> On Tue, Nov 23, 2021 at 11:51 AM Shaozhong SHI >> wrote: >> >>> I tried nested regex

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

2021-11-23 Thread Shaozhong SHI
It only matches First Street from 'My First Street'. I was trying to make it to match words starting capital letter only. Regards, David On Tue, 23 Nov 2021 at 10:59, chlor wrote: > On Tue, Nov 23, 2021 at 11:51 AM Shaozhong SHI > wrote: > >> I tried nested regex '[[A-Z][a-z]

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

2021-11-23 Thread chlor
On Tue, Nov 23, 2021 at 11:51 AM Shaozhong SHI 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

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

2021-11-23 Thread Shaozhong SHI
I tried nested regex '[[A-Z][a-z] ]+[[A-Z][a-z]]' but it did not work. Regards, David On Tue, 23 Nov 2021 at 09:58, Shaozhong SHI wrote: > Is there any regex for Word space Word space Word and more? > > Regards, > > David >

Regex for Word space Word space Word ....

2021-11-23 Thread Shaozhong SHI
Is there any regex for Word space Word space Word and more? Regards, David