本月博客排行
-
第1名
wy_19921005 -
第2名
mft8899 -
第3名
java-007 - benladeng5225
- Anmin
年度博客排行
-
第1名
龙儿筝 -
第2名
宏天软件 -
第3名
benladeng5225 - wy_19921005
- vipbooks
- kaizi1992
- 青否云后端云
- e_e
- tanling8334
- sam123456gz
- arpenker
- zysnba
- fantaxy025025
- xiangjie88
- lemonhandsome
- wallimn
- jh108020
- ganxueyun
- Xeden
- xyuma
- zhanjia
- wangchen.ily
- johnsmith9th
- zxq_2017
- forestqqqq
- jbosscn
- daizj
- xpenxpen
- 喧嚣求静
- kingwell.leng
- lchb139128
- kristy_yy
- jveqi
- javashop
- lzyfn123
- sunj
- yeluowuhen
- ajinn
- lerf
- silverend
- chenqisdfx
- xiaoxinye
- flashsing123
- bosschen
- lyndon.lin
- zhangjijun
- sunnylocus
- lyj86
- paulwong
- sgqt
最新文章列表
ruby 的回溯 正则表达式
password =~ /^(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{6,40}$/
#(?=.*\d) any thing with a number
#at least one number one up case one down case
^ - Matches beginning of line
$ - Matches end of lin ...
在J2SE中使用正则表达式的一个细节
今天在做字符串处理的时候,
发现了在J2SE中使用正则表达式来匹配英文句号的一个小陷阱。
特此记录下来。
public static void main(String[] args) {
String test = "aa\\abb.gg\\ad.txt";
String regEx = ".+\\\\(.+)\\..+$" ...
Regular Expressions
Regular expressions (“regexps”) match strings.
/abc/ =~ "abc"
When a match is successful, the return value
0
֒→ ...
Chapter 13. Strings -- Thinking in Java
1) Objects of the String class are immutable. Every method in the String class that appears to modify a String actually creates and returns a brand new String object containing the modification. The ...