India has a good institutional infrastructure for geographic data collection. There are a number of organizations that gather information on every possible socially and scientifically relevant subject. The Survey of India and the Indian Remote Sensing Satellites are the most important generators of this data.
India is blessed with a commendable IT infrastructure equipped with latest [...]
阅读全文...
This Halloween, why not become a brave member of the Global Integrated Joint Operating Entity (GI JOE) or a villain from the Cobra Organization wearing some of the most popular and sought after costumes this Halloween. Both kids and adults a like will be donning the Gi Joe Costumes and Cobra organization costumes this Halloween [...]
阅读全文...
无聊的时候发现很多人都在玩QQ农场,突发奇想,把QQ伴侣2.46加密方式破解掉,然后写个小东西,就可以批量盗取QQ密码咯~
阅读全文...
还有一些在各个正则表达式引擎之间比较通用的规则,在前面的讲解过程中没有提到。
3.1 表达式中,可以使用 “\xXX” 和 “\uXXXX” 表示一个字符(”X” 表示一个十六进制数)
阅读全文...
2.1 匹配次数中的贪婪与非贪婪
在使用修饰匹配次数的特殊符号时,有几种表示方法可以使同一个表达式能够匹配不同的次数,比如:”{m,n}”, “{m,}”, “?”, “*”, “+”,具体匹配的次数随被匹配的字符串而定。这种重复匹配不定次数的表达式在匹配过程中,总是尽可能多的匹配。比如,针对文本 “dxxxdxxxd”,举例如下:
阅读全文...
正则表达式(regular expression)就是用一个“字符串”来描述一个特征,然后去验证另一个“字符串”是否符合这个特征。比如 表达式“ab+” 描述的特征是“一个 ‘a’ 和 任意个 ‘b’ ”,那么 ‘ab’, ‘abb’, ‘abbbbbbbbbb’ 都符合这个特征。
正则表达式可以用来:(1)验证字符串是否符合指定特征,比如验证是否是合法的邮件地址。(2)用来查找字符串,从一个长的文本中查找符合指定特征的字符串,比查找固定字符串更加灵活方便。(3)用来替换,比普通的替换更强大。
正则表达式学习起来其实是很简单的,不多的几个较为抽象的概念也很容易理解。之所以很多人感觉正则表达式比较复杂,一方面是因为大多数的文档没有做到由浅入深地讲解,概念上没有注意先后顺序,给读者的理解带来困难;另一方面,各种引擎自带的文档一般都要介绍它特有的功能,然而这部分特有的功能并不是我们首先要理解的。
阅读全文...
最近评论