Return the text of the RegExp pattern:
The result of res will be:
The source property returns the text of the RegExp pattern.
The source property is supported in all major browsers.
Type | Description |
---|---|
String | The text of the RegExp pattern |
JavaScript Version: | 1.2 |
---|