'Bétheny La Couturelle - Croix Cordier - Tinqueux Champ Paveau'
- {Bétheny La Couturelle}
- {Croix Cordier}
- {Tinqueux Champ Paveau}
我已经尝试过这种模式:
,'([a-zA-Zéèàîùê]+(\s|\-)?)+', 'g');
ex:
select regexp_matches('Bétheny La Couturelle - Croix Cordier - Tinqueux Champ Paveau','([a-zA-Zéèàîùê]+(\s|\-)?)+','g')````
用于捕获所有匹配项的'g'标志。但这是行不通的。我得到的只是:
- {e , }
- {r , }
- {u,NULL}
我如何成功?预先感谢。
我需要从数据库的一列中提取单词组。用户以一种非常讨厌的方式保存了公交线路的终点站,我需要提取它们。例如:'BéthenyLa Couturelle-Croix ...