Skip to content

Commit

Permalink
Regular expressions, align title/URL with content (#19050)
Browse files Browse the repository at this point in the history
* Regular expressions, align title/URL with content

* Add subfeature

* Add literal character

---------

Co-authored-by: Brian Thomas Smith <[email protected]>
  • Loading branch information
Josh-Cena and bsmth authored Apr 26, 2023
1 parent e5d8ed6 commit fd1e23d
Showing 1 changed file with 177 additions and 57 deletions.
234 changes: 177 additions & 57 deletions javascript/regular_expressions.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
"regular_expressions": {
"backreference": {
"__compat": {
"description": "Backreferences (<code>\\1</code>, <code>\\2</code>, etc.)",
"description": "Backreference: <code>\\1</code>, <code>\\2</code>",
"mdn_url": "https://developer.mozilla.org/docs/Web/JavaScript/Reference/Regular_expressions/Backreference",
"spec_url": "https://tc39.es/ecma262/multipage/text-processing.html#prod-DecimalEscape",
"support": {
"chrome": {
"version_added": "1"
Expand Down Expand Up @@ -48,7 +50,9 @@
},
"capturing_group": {
"__compat": {
"description": "Capturing groups (<code>(...)</code>)",
"description": "Capturing group: <code>(...)</code>",
"mdn_url": "https://developer.mozilla.org/docs/Web/JavaScript/Reference/Regular_expressions/Capturing_group",
"spec_url": "https://tc39.es/ecma262/multipage/text-processing.html#prod-Atom",
"support": {
"chrome": {
"version_added": "1"
Expand Down Expand Up @@ -93,7 +97,9 @@
},
"character_class": {
"__compat": {
"description": "Character classes (<code>[...]</code>)",
"description": "Character class: <code>[...]</code>, <code>[^...]</code>",
"mdn_url": "https://developer.mozilla.org/docs/Web/JavaScript/Reference/Regular_expressions/Character_class",
"spec_url": "https://tc39.es/ecma262/multipage/text-processing.html#prod-CharacterClass",
"support": {
"chrome": {
"version_added": "1"
Expand Down Expand Up @@ -138,7 +144,9 @@
},
"character_class_escape": {
"__compat": {
"description": "Character class escapes (<code>\\d</code>, <code>\\w</code>, etc.)",
"description": "Character class escape: <code>\\d</code>, <code>\\D</code>, <code>\\w</code>, <code>\\W</code>, <code>\\s</code>, <code>\\S</code>",
"mdn_url": "https://developer.mozilla.org/docs/Web/JavaScript/Reference/Regular_expressions/Character_class_escape",
"spec_url": "https://tc39.es/ecma262/multipage/text-processing.html#prod-CharacterClassEscape",
"support": {
"chrome": {
"version_added": "1"
Expand Down Expand Up @@ -183,7 +191,9 @@
},
"character_escape": {
"__compat": {
"description": "Character escapes (<code>\\n</code>, <code>\\r</code>, etc.)",
"description": "Character escape: <code>\\n</code>, <code>\\x</code>",
"mdn_url": "https://developer.mozilla.org/docs/Web/JavaScript/Reference/Regular_expressions/Character_escape",
"spec_url": "https://tc39.es/ecma262/multipage/text-processing.html#prod-CharacterEscape",
"support": {
"chrome": {
"version_added": "1"
Expand Down Expand Up @@ -224,11 +234,54 @@
"standard_track": true,
"deprecated": false
}
},
"unicode": {
"__compat": {
"description": "Unicode character escape: <code>\\u{...}</code>",
"support": {
"chrome": {
"version_added": "50"
},
"chrome_android": "mirror",
"deno": {
"version_added": "1.0"
},
"edge": {
"version_added": "12"
},
"firefox": {
"version_added": "46"
},
"firefox_android": "mirror",
"ie": {
"version_added": false
},
"nodejs": {
"version_added": "6.0.0"
},
"oculus": "mirror",
"opera": "mirror",
"opera_android": "mirror",
"safari": {
"version_added": "10"
},
"safari_ios": "mirror",
"samsunginternet_android": "mirror",
"webview_android": "mirror"
},
"status": {
"experimental": false,
"standard_track": true,
"deprecated": false
}
}
}
},
"disjunction": {
"__compat": {
"description": "Disjunction (<code>|</code>)",
"description": "Disjunction: <code>|</code>",
"mdn_url": "https://developer.mozilla.org/docs/Web/JavaScript/Reference/Regular_expressions/Disjunction",
"spec_url": "https://tc39.es/ecma262/multipage/text-processing.html#prod-Disjunction",
"support": {
"chrome": {
"version_added": "1"
Expand Down Expand Up @@ -273,7 +326,56 @@
},
"input_boundary_assertion": {
"__compat": {
"description": "Input boundary assertions (<code>^</code>, <code>$</code>)",
"description": "Input boundary assertion: <code>^</code>, <code>$</code>",
"mdn_url": "https://developer.mozilla.org/docs/Web/JavaScript/Reference/Regular_expressions/Input_boundary_assertion",
"spec_url": "https://tc39.es/ecma262/multipage/text-processing.html#prod-Assertion",
"support": {
"chrome": {
"version_added": "1"
},
"chrome_android": "mirror",
"deno": {
"version_added": "1.0"
},
"edge": {
"version_added": "12"
},
"firefox": {
"version_added": "1"
},
"firefox_android": "mirror",
"ie": {
"version_added": "4"
},
"nodejs": {
"version_added": "0.10.0"
},
"oculus": "mirror",
"opera": {
"version_added": "5"
},
"opera_android": {
"version_added": "10.1"
},
"safari": {
"version_added": "1"
},
"safari_ios": "mirror",
"samsunginternet_android": "mirror",
"webview_android": "mirror"
},
"status": {
"experimental": false,
"standard_track": true,
"deprecated": false
}
}
},
"literal_character": {
"__compat": {
"description": "Literal character: <code>a</code>, <code>b</code>",
"mdn_url": "https://developer.mozilla.org/docs/Web/JavaScript/Reference/Regular_expressions/Literal_character",
"spec_url": "https://tc39.es/ecma262/multipage/text-processing.html#prod-PatternCharacter",
"support": {
"chrome": {
"version_added": "1"
Expand Down Expand Up @@ -318,7 +420,9 @@
},
"lookahead_assertion": {
"__compat": {
"description": "Lookahead assertion (<code>(?=...)</code>)",
"description": "Lookahead assertion: <code>(?=...)</code>, <code>(?!...)</code>",
"mdn_url": "https://developer.mozilla.org/docs/Web/JavaScript/Reference/Regular_expressions/Lookahead_assertion",
"spec_url": "https://tc39.es/ecma262/multipage/text-processing.html#prod-Assertion",
"support": {
"chrome": {
"version_added": "1"
Expand Down Expand Up @@ -363,7 +467,9 @@
},
"lookbehind_assertion": {
"__compat": {
"description": "lookbehind assertions (<code>(?&lt;= )</code> and <code>(?&lt;! )</code>)",
"description": "Lookbehind assertion: <code>(?&lt;=...)</code>, <code>(?&lt;!...)</code>",
"mdn_url": "https://developer.mozilla.org/docs/Web/JavaScript/Reference/Regular_expressions/Lookbehind_assertion",
"spec_url": "https://tc39.es/ecma262/multipage/text-processing.html#prod-Assertion",
"support": {
"chrome": {
"version_added": "62"
Expand Down Expand Up @@ -402,7 +508,9 @@
},
"named_backreference": {
"__compat": {
"description": "Named backreference (<code>(?&lt;name&gt;...)</code>)",
"description": "Named backreference: <code>\\k&lt;name></code>",
"mdn_url": "https://developer.mozilla.org/docs/Web/JavaScript/Reference/Regular_expressions/Named_backreference",
"spec_url": "https://tc39.es/ecma262/multipage/text-processing.html#prod-AtomEscape",
"support": {
"chrome": {
"version_added": "64"
Expand Down Expand Up @@ -450,9 +558,11 @@
}
}
},
"named_capture_groups": {
"named_capturing_group": {
"__compat": {
"description": "Named capture groups",
"description": "Named capture group: <code>(?&lt;name>...)</code>",
"mdn_url": "https://developer.mozilla.org/docs/Web/JavaScript/Reference/Regular_expressions/Named_capturing_group",
"spec_url": "https://tc39.es/ecma262/multipage/text-processing.html#prod-Atom",
"support": {
"chrome": {
"version_added": "64"
Expand Down Expand Up @@ -500,9 +610,11 @@
}
}
},
"non_capture_group": {
"non_capturing_group": {
"__compat": {
"description": "Non-capture group (<code>(?:...)</code>)",
"description": "Non-capturing group: <code>(?:...)</code>",
"mdn_url": "https://developer.mozilla.org/docs/Web/JavaScript/Reference/Regular_expressions/Non-capturing_group",
"spec_url": "https://tc39.es/ecma262/multipage/text-processing.html#prod-Atom",
"support": {
"chrome": {
"version_added": "1"
Expand Down Expand Up @@ -545,44 +657,41 @@
}
}
},
"property_escapes": {
"quantifier": {
"__compat": {
"description": "Unicode property escapes (<code>\\p{...}</code>)",
"description": "Quantifier: <code>*</code>, <code>+</code>, <code>?</code>, <code>{n}</code>, <code>{n,}</code>, <code>{n,m}</code>",
"mdn_url": "https://developer.mozilla.org/docs/Web/JavaScript/Reference/Regular_expressions/Quantifier",
"spec_url": "https://tc39.es/ecma262/multipage/text-processing.html#prod-Quantifier",
"support": {
"chrome": {
"version_added": "64"
"version_added": "1"
},
"chrome_android": "mirror",
"deno": {
"version_added": "1.0"
},
"edge": "mirror",
"edge": {
"version_added": "12"
},
"firefox": {
"version_added": "78"
"version_added": "1"
},
"firefox_android": "mirror",
"ie": {
"version_added": false
"version_added": "4"
},
"nodejs": {
"version_added": "0.10.0"
},
"nodejs": [
{
"version_added": "10.0.0"
},
{
"version_added": "8.3.0",
"flags": [
{
"name": "--harmony",
"type": "runtime_flag"
}
]
}
],
"oculus": "mirror",
"opera": "mirror",
"opera_android": "mirror",
"opera": {
"version_added": "5"
},
"opera_android": {
"version_added": "10.1"
},
"safari": {
"version_added": "11.1"
"version_added": "1"
},
"safari_ios": "mirror",
"samsunginternet_android": "mirror",
Expand All @@ -595,39 +704,46 @@
}
}
},
"quantifier": {
"unicode_character_class_escape": {
"__compat": {
"description": "Quantifiers (<code>?</code>, <code>*</code>, <code>+</code>, <code>{n}</code>, <code>{n,}</code>, <code>{n,m}</code>)",
"description": "Unicode character class escape: <code>\\p{...}</code>, <code>\\P{...}</code>",
"mdn_url": "https://developer.mozilla.org/docs/Web/JavaScript/Reference/Regular_expressions/Unicode_character_class_escape",
"spec_url": "https://tc39.es/ecma262/multipage/text-processing.html#prod-CharacterClassEscape",
"support": {
"chrome": {
"version_added": "1"
"version_added": "64"
},
"chrome_android": "mirror",
"deno": {
"version_added": "1.0"
},
"edge": {
"version_added": "12"
},
"edge": "mirror",
"firefox": {
"version_added": "1"
"version_added": "78"
},
"firefox_android": "mirror",
"ie": {
"version_added": "4"
},
"nodejs": {
"version_added": "0.10.0"
"version_added": false
},
"nodejs": [
{
"version_added": "10.0.0"
},
{
"version_added": "8.3.0",
"flags": [
{
"name": "--harmony",
"type": "runtime_flag"
}
]
}
],
"oculus": "mirror",
"opera": {
"version_added": "5"
},
"opera_android": {
"version_added": "10.1"
},
"opera": "mirror",
"opera_android": "mirror",
"safari": {
"version_added": "1"
"version_added": "11.1"
},
"safari_ios": "mirror",
"samsunginternet_android": "mirror",
Expand All @@ -642,7 +758,9 @@
},
"wildcard": {
"__compat": {
"description": "Wildcard (<code>.</code>)",
"description": "Wildcard: <code>.</code>",
"mdn_url": "https://developer.mozilla.org/docs/Web/JavaScript/Reference/Regular_expressions/Wildcard",
"spec_url": "https://tc39.es/ecma262/multipage/text-processing.html#prod-Atom",
"support": {
"chrome": {
"version_added": "1"
Expand Down Expand Up @@ -687,7 +805,9 @@
},
"word_boundary_assertion": {
"__compat": {
"description": "Word boundary assertions (<code>\\b</code>, <code>\\B</code>)",
"description": "Word boundary assertion: <code>\\b</code>, <code>\\B</code>",
"mdn_url": "https://developer.mozilla.org/docs/Web/JavaScript/Reference/Regular_expressions/Word_boundary_assertion",
"spec_url": "https://tc39.es/ecma262/multipage/text-processing.html#prod-Assertion",
"support": {
"chrome": {
"version_added": "1"
Expand Down

0 comments on commit fd1e23d

Please sign in to comment.