StupidBeauty
Read times:393Posted at:Wed Mar 21 05:53:37 2012
- no title specified

轉載:常用正则式

正則式中表示非空字符:\S

http://www.cnblogs.com/adriano/archive/2008/08/18/1270142.html

亮點:

[ ]

范围描述符。[a-z]表示从a到z之间的任意一个。

\w

英文字母和数字。即[0-9 A-Z a-z]。

\W

非英文字母和数字

\s

空字符,即[\t\n\r\f]。

\S

非空字符。

\d

数字,即[0-9]。

\D

非数字。

\b

词边界字符(在范围描述符外部时)

\B

非词边界字符

\b

退格符(0x08)(在范围描述符内部时)

*

前面元素出现0次以上

+

前面元素出现1次以上

{m,n}

前面元素最少出现m次,最多出现n次

?

前面元素出现0次或1次

|

选择

( )

群组

其他字符

该字符本身

Your opinions
Your name:Email:Website url:Opinion content:
- no title specified

HxLauncher: Launch Android applications by voice commands

 
Recent comments
2017年4月~2019年4月垃圾短信排行榜Posted at:Thu Sep 26 04:51:48 2024
Qt5.7文档翻译:QWebEngineCookieStore类,QWebEngineCookieStore ClassPosted at:Fri Aug 11 06:50:35 2023盲盒kill -9 18289 Grebe.20230517.211749.552.mp4