Regular expressions
Widely available
The RegExp
object represents a regular expression, a notation for matching text patterns.
Compatibility
- Chrome 1 Released on 2008-12-11
- Chrome Android 18 Released on 2012-06-27
- Edge 12 Released on 2015-07-29
- Firefox 1 Released on 2004-11-09
- Firefox for Android 4 Released on 2011-03-29
- Safari 1 Released on 2003-06-23
- Safari on iOS 1 Released on 2007-06-29
MDN docs
- RegExp global object
- RegExp.Symbol.match
- RegExp.Symbol.matchAll
- RegExp.Symbol.replace
- RegExp.Symbol.search
- RegExp.Symbol.species
- RegExp.Symbol.split
- RegExp.RegExp
- RegExp.dotAll
- RegExp.exec
- RegExp.flags
- RegExp.global
- RegExp.hasIndices
- RegExp.ignoreCase
- RegExp.lastIndex
- RegExp.multiline
- RegExp.source
- RegExp.sticky
- RegExp.test
- RegExp.toString
- RegExp.unicode
- RegExp.unicodeSets
- Reference/Lexical_grammar#Regular_expression_literals
- Reference/Regular_expressions/Backreference
- Reference/Regular_expressions/Capturing_group
- Reference/Regular_expressions/Character_class
- Reference/Regular_expressions/Character_class_escape
- Reference/Regular_expressions/Character_escape
- Reference/Regular_expressions/Disjunction
- Reference/Regular_expressions/Input_boundary_assertion
- Reference/Regular_expressions/Literal_character
- Reference/Regular_expressions/Lookahead_assertion
- Reference/Regular_expressions/Lookbehind_assertion
- Reference/Regular_expressions/Modifier
- Reference/Regular_expressions/Named_backreference
- Reference/Regular_expressions/Named_capturing_group
- Reference/Regular_expressions/Non-capturing_group
- Reference/Regular_expressions/Quantifier
- Reference/Regular_expressions/Unicode_character_class_escape
- Reference/Regular_expressions/Wildcard
- Reference/Regular_expressions/Word_boundary_assertion
Specifications
- ECMAScript Language Specification, from TC39 (Ecma International).
BCD data
- javascript.builtins.RegExp
- javascript.builtins.RegExp.@@match
- javascript.builtins.RegExp.@@matchAll
- javascript.builtins.RegExp.@@replace
- javascript.builtins.RegExp.@@search
- javascript.builtins.RegExp.@@species
- javascript.builtins.RegExp.@@split
- javascript.builtins.RegExp.RegExp
- javascript.builtins.RegExp.dotAll
- javascript.builtins.RegExp.exec
- javascript.builtins.RegExp.flags
- javascript.builtins.RegExp.global
- javascript.builtins.RegExp.global.prototype_accessor
- javascript.builtins.RegExp.hasIndices
- javascript.builtins.RegExp.ignoreCase
- javascript.builtins.RegExp.ignoreCase.prototype_accessor
- javascript.builtins.RegExp.lastIndex
- javascript.builtins.RegExp.multiline
- javascript.builtins.RegExp.multiline.prototype_accessor
- javascript.builtins.RegExp.source
- javascript.builtins.RegExp.source.empty_regex_string
- javascript.builtins.RegExp.source.escaping
- javascript.builtins.RegExp.source.prototype_accessor
- javascript.builtins.RegExp.sticky
- javascript.builtins.RegExp.sticky.anchored_sticky_flag
- javascript.builtins.RegExp.sticky.prototype_accessor
- javascript.builtins.RegExp.test
- javascript.builtins.RegExp.toString
- javascript.builtins.RegExp.toString.escaping
- javascript.builtins.RegExp.unicode
- javascript.builtins.RegExp.unicodeSets
- javascript.grammar.regular_expression_literals
- javascript.regular_expressions.backreference
- javascript.regular_expressions.capturing_group
- javascript.regular_expressions.character_class
- javascript.regular_expressions.character_class_escape
- javascript.regular_expressions.character_escape
- javascript.regular_expressions.character_escape.unicode
- javascript.regular_expressions.disjunction
- javascript.regular_expressions.input_boundary_assertion
- javascript.regular_expressions.literal_character
- javascript.regular_expressions.lookahead_assertion
- javascript.regular_expressions.lookbehind_assertion
- javascript.regular_expressions.modifier
- javascript.regular_expressions.named_backreference
- javascript.regular_expressions.named_capturing_group
- javascript.regular_expressions.named_capturing_group.duplicate_named_capturing_groups
- javascript.regular_expressions.non_capturing_group
- javascript.regular_expressions.quantifier
- javascript.regular_expressions.unicode_character_class_escape
- javascript.regular_expressions.wildcard
- javascript.regular_expressions.word_boundary_assertion