首页 > Web开发 > 详细

备忘:js正则表达式中的元字符

时间:2016-05-01 13:27:16      阅读:214      评论:0      收藏:0      [点我收藏+]
Predefined term Matches
\t Horizontal tab
\b Backspace
\v Vertical tab
\f Form feed
\r Carriage return
\n Newline
\cA : \cZ Control characters
\x0000 : \xFFFF Unicode hexadecimal
\x00 : \xFF ASCII hexadecimal
. Any character, except for newline (\n)
\d Any decimal digit; equivalent to [0-9]
\D Any character but a decimal digit; equivalent to [^0-9]
\w Any alphanumeric character including underscore; equivalent to [A-Za-z0-9_]
\W Any character but alphanumeric and underscore characters; equivalent to [^A-Za-z0-9_]
\s Any whitespace character (space, tab, form feed, and so on)
\S Any character but a whitespace character
\b A word boundary
\B Not a word boundary (inside a word)

备忘:js正则表达式中的元字符

原文:http://www.cnblogs.com/undefined000/p/5450313.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!