Linux php 正则常用匹配模式

2013年07月31日 01:28 by:老修

[:alnum:]
     匹配[0-9a-zA-Z]

[:alpha:]
     匹配[a-zA-Z]

[:blank:]
    匹配 space and tab.

[:cntrl:]
     Control characters.  In ASCII, these characters have octal codes
     000 through 037, and 177 (`DEL').  In other character sets, these
     are the equivalent characters, if any.

[:digit:]
     匹配数字: `0 1 2 3 4 5 6 7 8 9'.

[:graph:]
     匹配: 0-9a-zA-Z和英文标点 [:alnum:]' and `[:punct:]'.

[:lower:]
     匹配小写字母: `a b c d e f g h i j k l m n o p q r s t u v w
     x y z'.
[:print:]
     匹配: `[:alnum:]', `[:punct:]', and space.

[:punct:]
     匹配英文标点: `! " # $ % & ' ( ) * + , - . / : ; < = > ?
     @ [  ] ^ _ `  ~'.

[:space:]
     匹配空格、换行: tab, newline, vertical tab, form feed, carriage
     return, and space.

[:upper:]
     匹配大写字母: `A B C D E F G H I J K L M N O P Q R S T U V W
     X Y Z'.

[:xdigit:]
     匹配: `0 1 2 3 4 5 6 7 8 9 A B C D E F a b c d e f'.
最后编辑时间:0000-00-00 00:00:00
标签:匹配模式