java正則表達式

用到類有:java.util.regex.Pattern;java.util.regex.Matcher java Pattern類的做用在於編譯正則表達式後建立一個匹配模式. Matcher類使用Pattern實例提供的模式信息對正則表達式進行匹配 Pattern complie(String regex) 因爲Pattern的構造函數是私有的,不能夠直接建立,因此經過靜態方法compile(S
相關文章
相關標籤/搜索