| Name |
Description |
| compile() |
Compiles a regular expression (Deprecated) |
| constructor |
Returns the function that created the RegExp prototype |
| dotAll |
Returns true if the s flag is set in the expression (new in 2018) |
| escape() |
Returns a string where characters that belongs to the regular expression syntax are escaped (new in 2025) |
| exec() |
Returns a result array for a matches in a string |
| flags |
Returns the modifiers set in the expression (new in 2015) |
| global |
Returns true if the g flag is set in the expression |
| hasIndices |
Returns true if the d flag is set (new in 2022) |
| ignoreCase |
Returns true if the i flag is set |
| lastIndex |
Specifies the index at which to start the next match |
| multiline |
Returns true if the m modifier is set |
| source |
Returns the text of the RegExp pattern |
| sticky |
Returns true if the y flag is set (new in 2015) |
| test() |
Tests for a match in a string. Returns true or false |
| toString() |
Returns the string value of the regular expression |
| unicode |
Returns true if the u flag is set (new in 2018) |
| unicodeSets |
Returns true if the v flag is set (new in 2023) |