Search Postgresql Archives

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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



På tirsdag 23. november 2021 kl. 12:25:29, skrev Shaozhong SHI <shishaozhong@xxxxxxxxx>:

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 [A-Z] approach doesn't handle well.
 
How about:
 
select regexp_matches('Åge is a Man', E'[[:upper:]]\\w+', 'g');
 
 
 
--
Andreas Joseph Krogh
CTO / Partner - Visena AS
Mobile: +47 909 56 963
andreas@xxxxxxxxxx
www.visena.com
 

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux