使用正则表达式模式查找unicode单词 [英] Find unicode words using Regex pattern

查看:80
本文介绍了使用正则表达式模式查找unicode单词的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨朋友

我必须找到像

Dani A. B
$ b $bSérgioY。k



我试过像

[A-z0-9] ++ [AZ] \\。[AZ] \\



此模式只找到Dani,否则找不到第二个单词

如何同时输入单词

Hi Friends
I have to find the words like
Dani A. B
Sérgio Y. k

I have tried the pattern like
[A-z0-9]++ [A-Z]\\.[A-Z]\\

This pattern find only Dani, where else second word is not found
how to the both the words

推荐答案

尝试:

Try:
\w+\s[A-Za-z]\.[A-Za-z]

您可能需要在末尾添加


以标记行尾。如果没有完整的样本数据,很难说清楚。
' to the end to mark "end of line" is required. Without your full sample data it's difficult to tell.


这篇关于使用正则表达式模式查找unicode单词的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆