SQL Regexp_replace()函数
我有一张名字的桌子,具有这样的价值:
客户 |
---|
Marco Rossi |
.paolo Esposito |
Jimmi Montana |
** luke Skywalker |
Marinella ABC |
-údrstMark |
-úgoSrl |
我想要的是在名称开头中删除所有特殊角色。 我使用了此功能Regexp.Replace('[^a-Za-Z0-9] | [^a-za-Z0-9] $/g',''))
,然后将我返回我几乎我想要的,但也删除了我 ú,找 因此,我没有[drst标记],而不是拥有[Drst Mark],
我可以在此函数中添加的内容是因为不在单词开头替换字符的角色?
非常感谢你。
I have a table with names that has the values like this:
Customer |
---|
marco rossi |
.paolo esposito |
jimmi montana |
**Luke skywalker |
marinella abc |
- ÚDRST MARK |
-úgo srl |
What i wanted was to delete all the special characters in the beginning of the names.
I used this function REGEXP.REPLACE('[^a-zA-Z0-9]|[^a-zA-Z0-9]$/g',''))
And this return me almost what i wanted but delete me also the
Ú, ú
So instead of having [ ÚDRST MARK ] i have [ DRST MARK ]
What i can add in this function for not replacing the characters with accents in the beginning of the words?
Thank u so much guys.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果要保留
u
和特殊字符,那么在非捕获组中添加它们呢?
它对您有用吗?
If you want to keep the
Ú
andú
special characters, what about adding them inside the non capturing group?Does it work for you?