matcher.group("login");
在eclipse上的androID 8中,但似乎没有Matcher.group(String)存在.
你有(内置)解决方案吗?
Pattern
类实现由ICU提供,准确地说是 ICU4C. The regular Expression implementation used in AndroID is provIDed by 07002. The notation for the regular Expressions is mostly a superset of those used in other Java language implementations. This means that existing applications will normally work as expected,but in rare cases AndroID may accept a regular Expression that is not accepted by other implementations.
而且ICU4C目前不支持命名捕获组.你必须依靠编号的捕获组.
ICU does not support named capture groups. 07003
如果确实需要该功能,则需要编写包装器并自行解析表达式以提供命名捕获组功能.
总结以上是内存溢出为你收集整理的android java正则表达式命名组全部内容,希望文章能够帮你解决android java正则表达式命名组所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)