Java 正则

 

 

 

 

 

1. 匹配实验:

String: “asdf1"        pattern: "asdf.*"    yes

String: "asdf123"     pattern:"asdf\\d+"    yes

String: "asdf123"     pattern:"asdf\\d{3}"    yes

 

posted @ 2017-10-13 16:01  Python_ZEN  阅读(139)  评论(0编辑  收藏  举报