The RegExp constructor creates a regular expression object for text with a pattern.
The RegExp constructor creates a regular expression object for text with a pattern.
(compile this pattern flags)
Method.
[Deprecated]
The deprecated compile() method is used to (re-)compile a regular during execution of a script. It is basically the same as the constructor.
regexObj.compile(pattern, flags)
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/compile
Method. [Deprecated] The deprecated compile() method is used to (re-)compile a regular during execution of a script. It is basically the same as the constructor. `regexObj.compile(pattern, flags)` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/compile`
(dot-all this)
Property.
[Read Only] [Draft]
The dotAll property indicates whether or not the "s" flag is with the regular expression. dotAll is a read-only property of individual regular expression instance.
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/dotAll
Property. [Read Only] [Draft] The dotAll property indicates whether or not the \"s\" flag is with the regular expression. dotAll is a read-only property of individual regular expression instance. See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/dotAll`
(exec this str)
Method.
The exec() method executes a search for a match in a specified
Returns a result array, or js.null
.
regexObj.exec(str)
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/exec
Method. The exec() method executes a search for a match in a specified Returns a result array, or `js.null`. `regexObj.exec(str)` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/exec`
(flags this)
Property.
The flags property returns a string consisting of the flags of current regular expression object.
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/flags
Property. The flags property returns a string consisting of the flags of current regular expression object. See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/flags`
(global this)
Property.
[Read Only]
The global property indicates whether or not the "g" flag is with the regular expression. global is a read-only property of individual regular expression instance.
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/global
Property. [Read Only] The global property indicates whether or not the \"g\" flag is with the regular expression. global is a read-only property of individual regular expression instance. See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/global`
(ignore-case this)
Property.
[Read Only]
The ignoreCase property indicates whether or not the "i" flag used with the regular expression. ignoreCase is a read-only property an individual regular expression instance.
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/ignoreCase
Property. [Read Only] The ignoreCase property indicates whether or not the \"i\" flag used with the regular expression. ignoreCase is a read-only property an individual regular expression instance. See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/ignoreCase`
(input this)
Property.
[Non Standard]
The non-standard input property is a static property of regular that contains the string against which a regular expression is RegExp.$_ is an alias for this property.
RegExp.input RegExp.$_
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/input
Property. [Non Standard] The non-standard input property is a static property of regular that contains the string against which a regular expression is RegExp.$_ is an alias for this property. `RegExp.input RegExp.$_` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/input`
(last-index this)
Property.
The lastIndex is a read/write integer property of regular expression that specifies the index at which to start the next match.
regExpObj.lastIndex
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/lastIndex
Property. The lastIndex is a read/write integer property of regular expression that specifies the index at which to start the next match. `regExpObj.lastIndex` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/lastIndex`
(last-match this)
Property.
[Read Only] [Non Standard]
The non-standard lastMatch property is a static and read-only of regular expressions that contains the last matched characters. is an alias for this property.
RegExp.lastMatch RegExp['$&']
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/lastMatch
Property. [Read Only] [Non Standard] The non-standard lastMatch property is a static and read-only of regular expressions that contains the last matched characters. is an alias for this property. `RegExp.lastMatch RegExp['$&']` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/lastMatch`
(last-paren this)
Property.
[Read Only] [Non Standard]
The non-standard lastParen property is a static and read-only of regular expressions that contains the last parenthesized substring if any. RegExp.$+ is an alias for this property.
RegExp.lastParen RegExp['$+']
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/lastParen
Property. [Read Only] [Non Standard] The non-standard lastParen property is a static and read-only of regular expressions that contains the last parenthesized substring if any. RegExp.$+ is an alias for this property. `RegExp.lastParen RegExp['$+']` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/lastParen`
(left-context this)
Property.
[Read Only] [Non Standard]
The non-standard leftContext property is a static and read-only of regular expressions that contains the substring preceding most recent match. RegExp.$` is an alias for this property.
RegExp.leftContext RegExp['$
']`
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/leftContext
Property. [Read Only] [Non Standard] The non-standard leftContext property is a static and read-only of regular expressions that contains the substring preceding most recent match. RegExp.$` is an alias for this property. `RegExp.leftContext RegExp['$`']` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/leftContext`
(length this)
Property.
The value of RegExp.length is 2.
Property. The value of RegExp.length is 2.
(multiline this)
Property.
[Read Only]
The multiline property indicates whether or not the "m" flag used with the regular expression. multiline is a read-only property an individual regular expression instance.
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/multiline
Property. [Read Only] The multiline property indicates whether or not the \"m\" flag used with the regular expression. multiline is a read-only property an individual regular expression instance. See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/multiline`
(prototype this)
Property.
The RegExp.prototype property represents the prototype object
the js.RegExp
constructor.
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/prototype
Property. The RegExp.prototype property represents the prototype object the `js.RegExp` constructor. See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/prototype`
(right-context this)
Property.
[Read Only] [Non Standard]
The non-standard rightContext property is a static and read-only of regular expressions that contains the substring following most recent match. RegExp.$' is an alias for this property.
RegExp.rightContext RegExp[\"$'\"]
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/rightContext
Property. [Read Only] [Non Standard] The non-standard rightContext property is a static and read-only of regular expressions that contains the substring following most recent match. RegExp.$' is an alias for this property. `RegExp.rightContext RegExp[\"$'\"]` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/rightContext`
(set-flags! this val)
Property.
The flags property returns a string consisting of the flags of current regular expression object.
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/flags
Property. The flags property returns a string consisting of the flags of current regular expression object. See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/flags`
(set-input! this val)
Property.
[Non Standard]
The non-standard input property is a static property of regular that contains the string against which a regular expression is RegExp.$_ is an alias for this property.
RegExp.input RegExp.$_
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/input
Property. [Non Standard] The non-standard input property is a static property of regular that contains the string against which a regular expression is RegExp.$_ is an alias for this property. `RegExp.input RegExp.$_` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/input`
(set-last-index! this val)
Property.
The lastIndex is a read/write integer property of regular expression that specifies the index at which to start the next match.
regExpObj.lastIndex
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/lastIndex
Property. The lastIndex is a read/write integer property of regular expression that specifies the index at which to start the next match. `regExpObj.lastIndex` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/lastIndex`
(set-length! this val)
Property.
The value of RegExp.length is 2.
Property. The value of RegExp.length is 2.
(set-prototype! this val)
Property.
The RegExp.prototype property represents the prototype object
the js.RegExp
constructor.
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/prototype
Property. The RegExp.prototype property represents the prototype object the `js.RegExp` constructor. See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/prototype`
(set-source! this val)
Property.
The source property returns a js.String
containing the source
of the regexp object, and it doesn't contain the two forward
on both sides and any flags.
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/source
Property. The source property returns a `js.String` containing the source of the regexp object, and it doesn't contain the two forward on both sides and any flags. See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/source`
(source this)
Property.
The source property returns a js.String
containing the source
of the regexp object, and it doesn't contain the two forward
on both sides and any flags.
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/source
Property. The source property returns a `js.String` containing the source of the regexp object, and it doesn't contain the two forward on both sides and any flags. See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/source`
(sticky this)
Property.
[Read Only]
The sticky property reflects whether or not the search is sticky
in strings only from the index indicated by the lastIndex
property
this regular expression). sticky is a read-only property of an
regular expression object.
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/sticky
Property. [Read Only] The sticky property reflects whether or not the search is sticky in strings only from the index indicated by the `lastIndex` property this regular expression). sticky is a read-only property of an regular expression object. See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/sticky`
(test this str)
Method.
The test() method executes a search for a match between a regular and a specified string. Returns true or false.
regexObj.test(str)
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/test
Method. The test() method executes a search for a match between a regular and a specified string. Returns true or false. `regexObj.test(str)` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/test`
(to-source this)
Method.
[Non Standard]
The toSource() method returns a string representing the source of the object.
regexObj.toSource()
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/toSource
Method. [Non Standard] The toSource() method returns a string representing the source of the object. `regexObj.toSource()` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/toSource`
(to-string this)
Method.
The toString() method returns a string representing the regular
regexObj.toString();
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/toString
Method. The toString() method returns a string representing the regular `regexObj.toString();` See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/toString`
(unicode this)
Property.
[Read Only]
The unicode property indicates whether or not the "u" flag used with a regular expression. unicode is a read-only property an individual regular expression instance.
See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/unicode
Property. [Read Only] The unicode property indicates whether or not the \"u\" flag used with a regular expression. unicode is a read-only property an individual regular expression instance. See also: `https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/unicode`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close