这个:
select regexp_matches('test text user:testuser,anotheruser hashtag:peach,phone,milk site:youtube.com,twitter.com flair:bobby', '^.*?(?=\s+[^:\s]+:)|([^:\s]+):([^:\s]+)','gi');
只给我一个组匹配和一个 NULL 行:
regexp_matches
-----------------
{NULL,NULL}
{flair,bobby}
当我在这里测试它时它工作正常:
https://regex101.com/r/AxsatL/3
我究竟做错了什么?