开发者

Java reg-ex to get tokens?

samplefile.html.xml[emai开发者_StackOverflow中文版laddress@gmail.com],samplefile.html.xml[emailaddress@gmail.com]

What is the reg-ex to gather file and email address as 2 tokens in java?


What about?

(?:([^\[]*?)\[(.*?)\],?)+?

As a Java String:

"(?:([^\\[]*?)\\[(.*?)\\],?)+?"
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜