Java 正則

 

 

 

 

 

1. 匹配實驗:

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

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

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

相關文章
相關標籤/搜索