
正则
perfectnihil
java,dart,python,js,lua
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
在安卓中使用正则表达式1
Section1 Pattern 首先理解这个单词:Pattern Pattern 是什么意思? 中文译为模式,在深度学习领域,有所谓的模式识别的概念 手机号是一种模式,邮箱是也是一种模式,网址又是另外一直模式 Section2 ^和$ 使用 假设我想判断一个字符串是否以The开头要怎么做 System.out.println(Pattern.matches原创 2017-08-31 10:51:49 · 412 阅读 · 0 评论 -
在安卓中使用正则表达式2
Section 6 字符组 [ ] 与[^] [ ] ===>匹配字符集中任意字符 [^] ===>匹配不在字符集中的任意字符 System.out.println(Pattern.matches("[abcde]*", "abc") + ""); System.out.println(Pattern.matches("[abcde]*", "abcz") + ""原创 2017-08-31 13:11:11 · 325 阅读 · 0 评论