A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://webplatform.github.io/docs/javascript/RegExp/source below:

source ยท WebPlatform Docs

source Summary

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.

Syntax
rgExp.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

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