Returns a copy of the text of the regular expression pattern. Read-only. The rgExp argument is a Regular expression object. It can be a variable name or a literal.
SyntaxrgExp.source
Examples
The following example illustrates the use of the source property:
function SourceDemo(re, s){
var s1;
if (re.test(s))
s1 = " contains ";
else
s1 = " does not contain ";
return(s + s1 + re.source );
}
See also Other articles
Attributions
Microsoft Developer Network: Article
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4