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:
"(?:([^\\[]*?)\\[(.*?)\\],?)+?"
精彩评论