• linkedu视频
  • 平面设计
  • 电脑入门
  • 操作系统
  • 办公应用
  • 电脑硬件
  • 动画设计
  • 3D设计
  • 网页设计
  • CAD设计
  • 影音处理
  • 数据库
  • 程序设计
  • 认证考试
  • 信息管理
  • 信息安全
菜单
linkedu.com
  • 网页制作
  • 数据库
  • 程序设计
  • 操作系统
  • CMS教程
  • 游戏攻略
  • 脚本语言
  • 平面设计
  • 软件教程
  • 网络安全
  • 电脑知识
  • 服务器
  • 视频教程
  • JavaScript
  • ASP.NET
  • PHP
  • 正则表达式
  • AJAX
  • JSP
  • ASP
  • Flex
  • XML
  • 编程技巧
  • Android
  • swift
  • C#教程
  • vb
  • vb.net
  • C语言
  • Java
  • Delphi
  • 易语言
  • vc/mfc
  • 嵌入式开发
  • 游戏开发
  • ios
  • 编程问答
  • 汇编语言
  • 微信小程序
  • 数据结构
  • OpenGL
  • 架构设计
  • qt
  • 微信公众号
您的位置:首页 > 程序设计 >正则表达式 > javascipt 正则表达式英文版

javascipt 正则表达式英文版

作者: 字体:[增加 减小] 来源:互联网 时间:2017-05-11

通过本文主要向大家介绍了javascipt:void 0,javascipt:void,javascipt:,javascipt怎么读,什么是javascipt等相关知识,希望对您有所帮助,也希望大家支持linkedu.com www.linkedu.com
</div> Alphanumeric character Itself</div> \0 The NUL character (\u0000)</div> \t Tab (\u0009)</div> \n Newline (\u000A)</div> \v Vertical tab (\u000B)</div> \f Form feed (\u000C)</div> \r Carriage return (\u000D)</div> \xnn The Latin character specified by the hexadecimal number nn; for example, \x0A is the same as \n</div> \uxxxx The Unicode character specified by the hexadecimal number xxxx; for example, \u0009 is the same as \t</div> \cX The control character ^X; for example, \cJ is equivalent to the newline character \n</div>  </div>

2. Regular expression character classes Character Matches

[...] Any one character between the brackets.</div> [^...] Any one character not between the brackets.</div> .  Any character except newline or another Unicode line terminator.</div> \w Any ASCII word character. Equivalent to [a-zA-Z0-9_].</div> \W Any character that is not an ASCII word character. Equivalent to [^a-zA-Z0-9_].</div> \s Any Unicode whitespace character.</div> \S Any character that is not Unicode whitespace. Note that \w and \S are not the same thing.</div> \d Any ASCII digit. Equivalent to [0-9].</div> \D Any character other than an ASCII digit. Equivalent to [^0-9].</div> [\b] A literal backspace (special case).</div>  </div> </div> {n,m} Match the previous item at least n times but no more than m times.</div> {n,} Match the previous item n or more times.</div> {n} Match exactly n occurrences of the previous item.</div> ?  Match zero or one occurrences of the previous item. That is, the previous item is optional. Equivalent to {0,1}.</div> + Match one or more occurrences of the previous item. Equivalent to {1,}.</div> * Match zero or more occurrences of the previous item. Equivalent to {0,}.</div>  </div> </div> | Alternation. Match either the subexpression to the left or the subexpression to the right.</div> (...) Grouping. Group items into a single unit that can be used with *, +, ?, |, and so on. Also remember the characters that match this group for use with later references.</div> (?:...) Grouping only. Group items into a single unit, but do not remember the characters that match this group.</div> \n Match the same characters that were matched when group number n was first matched. Groups are subexpressions within (possibly nested) parentheses. Group numbers are assigned by counting left parentheses from left to right. Groups formed with (?: are not numbered.</div>  </div> </div> ^ Match the beginning of the string and, in multiline searches, the beginning of a line.</div> $ Match the end of the string and, in multiline searches, the end of a line.</div> \b Match a word boundary. That is, match the position between a \w character and a \W character or between a \w character and the beginning or end of a string. (Note, however, that [\b] matches backspace.)</div> \B Match a position that is not a word boundary.</div> (?=p) A positive lookahead assertion. Require that the following characters match the pattern p, but do not include those characters in the match.</div> (?!p) A negative lookahead assertion. Require that the following characters do not match the pattern p.</div>  </div> </div> i Perform case-insensitive matching.</div> g Perform a global matchthat is, find all matches rather than stopping after the first match.</div> m Multiline mode. ^ matches beginning of line or beginning of string, and $ matches end of line or end of string.</div>  </div> </div> string.replace(regexp, replacement)</div> </div> Characters Replacement</div> $1, $2, ..., $99  The text that matched the 1st through 99th parenthesized subexpression within regexp</div>  The substring that matched regexp</div>  The text to the left of the matched substring</div>  The text to the right of the matched substring</div>  A literal dollar sign</div>  </div> name.replace(/(\w+)\s*,\s*(\w+)/, "$2 $1");</div> text.replace(/"([^"]*)"/g, "''$1''");</div> text.replace(/\b\w+\b/g, function(word) {</div>                            return word.substring(0,1).toUpperCase( ) +</div>                                   word.substring(1);</div>                          });</div> </div>
分享到:QQ空间新浪微博腾讯微博微信百度贴吧QQ好友复制网址打印

您可能想查找下面的文章:

  • javascipt 正则表达式英文版

相关文章

  • 2017-05-11正则表达式初运用之认证界面的实现代码
  • 2017-05-11JAVA中正则表达式小总结(整理)
  • 2017-05-11[js]一个只删除所有font标签的正则函数
  • 2017-05-11正则表达式与HTML5新元素
  • 2017-05-11解决preg_match匹配过多字符长度的限制的思路分析
  • 2017-05-11移除HTML标签的正则表达式
  • 2017-05-11正则表达式实现匹配连续数字的方法
  • 2017-05-11javascript判断中文的正则
  • 2017-05-11JScript 8.0 正则表达式语法
  • 2017-05-11正则表达式\w元字符使用介绍

文章分类

  • JavaScript
  • ASP.NET
  • PHP
  • 正则表达式
  • AJAX
  • JSP
  • ASP
  • Flex
  • XML
  • 编程技巧
  • Android
  • swift
  • C#教程
  • vb
  • vb.net
  • C语言
  • Java
  • Delphi
  • 易语言
  • vc/mfc
  • 嵌入式开发
  • 游戏开发
  • ios
  • 编程问答
  • 汇编语言
  • 微信小程序
  • 数据结构
  • OpenGL
  • 架构设计
  • qt
  • 微信公众号

最近更新的内容

    • Javascript中使用exec进行正则表达式全局匹配时的注意事项
    • C#中的正则表达式 学习资料
    • 一个不错的正则
    • JS验证URL函数 正则
    • 表单验证常用正则(强烈推荐大家收藏下)
    • PHP正则匹配图片并给图片加链接详解
    • PHP正则表达式完全教程之提高篇
    • 最全的常用正则表达式大全——包括校验数字、字符、一些特殊的需求等等
    • 运用正则表达式匹配所有表名
    • php正则表达式的模式修正符和逆向引用使用介绍

关于我们 - 联系我们 - 免责声明 - 网站地图

©2020-2025 All Rights Reserved. linkedu.com 版权所有