最新文章列表

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 ...
夜鸣猪 评论(2) 有1270人浏览 2012-03-03 02:48

在J2SE中使用正则表达式的一个细节

今天在做字符串处理的时候, 发现了在J2SE中使用正则表达式来匹配英文句号的一个小陷阱。 特此记录下来。     public static void main(String[] args) { String test = "aa\\abb.gg\\ad.txt"; String regEx = ".+\\\\(.+)\\..+$" ...
nigelzeng 评论(0) 有1748人浏览 2011-12-24 14:01

Regular Expressions

                               Regular expressions (“regexps”) match strings. /abc/ =~ "abc"                                When a match is successful, the return value    0 ֒→                ...
orcl_zhang 评论(0) 有926人浏览 2010-10-16 22:55

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 ...
leonzhx 评论(0) 有1223人浏览 2010-10-01 18:07

最近博客热门TAG

Java(141741) C(73643) C++(68602) SQL(64557) C#(59604) XML(59131) HTML(59042) JavaScript(54916) .net(54782) Web(54511) 工作(54116) Linux(50906) Oracle(49861) 应用服务器(43285) Spring(40811) 编程(39452) Windows(39380) JSP(37540) MySQL(37266) 数据结构(36420)

博客人气排行榜

    博客电子书下载排行

      >>浏览更多下载

      相关资讯

      相关讨论

      Global site tag (gtag.js) - Google Analytics