mmu get regular rop 则表达式 line out github
1、正则表达式唯一的用途就是在文本中匹配和寻找模式,模式可以简单,也可以复杂。
2、Regexr 这个网站很个性的就是,有一个community标签,打开后可以看到评分由高到低排列的 正则。
3、待匹配的文本 顺便mark 作者的git
THE RIME OF THE ANCYENT MARINERE, IN SEVEN PARTS.
ARGUMENT.
How a Ship having passed the Line was driven by Storms to the coldCountry towards the South Pole; and how from thence she made her courseto the tropical Latitude of the Great Pacific Ocean; and of the strangethings that befell; and in what manner the Ancyent Marinere came back tohis own Country.
I.
1 It is an ancyent Marinere,2 And he stoppeth one of three:3 "By thy long grey beard and thy glittering eye4 "Now wherefore stoppest me?
4、字符组取反:\D 等价 [^0-9] 等价 [^\d] 匹配所有非数字。
5、\w
【Python】正则表达式1(未完)
来源: http://www.bubuko.com/infodetail-2068438.html