regexp

dojo/regexp

Summary

Regular expressions and Builder resources

See the dojo/regexp reference documentation for more information.

Methods

buildGroupRE(arr,re,nonCapture)

Defined by dojo/regexp

Builds a regular expression that groups subexpressions

A utility function used by some of the RE generators. The subexpressions are constructed by the function, re, in the second parameter. re builds one subexpression for each elem in the array a, in the first parameter. Returns a string for a regular expression that groups all the subexpressions.

Parameter Type Description
arr Object | Array

A single value or an array of values.

re Function

A function. Takes one parameter and converts it to a regular expression.

nonCapture Boolean
Optional

If true, uses non-capturing match, otherwise matches are retained by regular expression. Defaults to false

Returns: undefined

escapeString(str,except)

Defined by dojo/regexp

Adds escape sequences for special characters in regular expressions

Parameter Type Description
str String
except String
Optional

a String with special characters to be left unescaped

Returns: undefined

group(expression,nonCapture)

Defined by dojo/regexp

adds group match to expression

Parameter Type Description
expression String
nonCapture Boolean
Optional

If true, uses non-capturing match, otherwise matches are retained by regular expression.

Returns: string

© 2005–2015 The Dojo Foundation
Licensed under the AFL 2.1 and BSD 3-Clause licenses.
http://dojotoolkit.org/api/1.10/dojo/regexp.html

停课不停学活动
在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部