content
content copied to clipboard
Regex reference
Description
See https://github.com/mdn/mdn-community/discussions/196
Draft as a demo
Motivation
Additional details
Related issues and pull requests
Preview URLs (28 pages)
- /en-US/docs/Mozilla/Firefox/Releases/78
- /en-US/docs/Web/JavaScript/Guide/Regular_expressions/Assertions
- /en-US/docs/Web/JavaScript/Guide/Regular_expressions/Character_classes
- /en-US/docs/Web/JavaScript/Guide/Regular_expressions/Cheatsheet
- /en-US/docs/Web/JavaScript/Guide/Regular_expressions/Groups_and_backreferences
- /en-US/docs/Web/JavaScript/Guide/Regular_expressions/Quantifiers
- /en-US/docs/Web/JavaScript/Guide/Regular_expressions
- /en-US/docs/Web/JavaScript/Reference/Deprecated_and_obsolete_features
- /en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/unicode
- /en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp
- /en-US/docs/Web/JavaScript/Reference/Regular_expressions/Backreference
- /en-US/docs/Web/JavaScript/Reference/Regular_expressions/Capturing_group
- /en-US/docs/Web/JavaScript/Reference/Regular_expressions/Character_class
- /en-US/docs/Web/JavaScript/Reference/Regular_expressions/Character_class_escape
- /en-US/docs/Web/JavaScript/Reference/Regular_expressions/Character_escape
- /en-US/docs/Web/JavaScript/Reference/Regular_expressions/Disjunction
- /en-US/docs/Web/JavaScript/Reference/Regular_expressions/Input_boundary_assertion
- /en-US/docs/Web/JavaScript/Reference/Regular_expressions/Literal_character
- /en-US/docs/Web/JavaScript/Reference/Regular_expressions/Lookahead_assertion
- /en-US/docs/Web/JavaScript/Reference/Regular_expressions/Lookbehind_assertion
- /en-US/docs/Web/JavaScript/Reference/Regular_expressions/Named_backreference
- /en-US/docs/Web/JavaScript/Reference/Regular_expressions/Named_capturing_group
- /en-US/docs/Web/JavaScript/Reference/Regular_expressions/Non-capturing_group
- /en-US/docs/Web/JavaScript/Reference/Regular_expressions/Quantifier
- /en-US/docs/Web/JavaScript/Reference/Regular_expressions/Unicode_character_class_escape
- /en-US/docs/Web/JavaScript/Reference/Regular_expressions/Wildcard
- /en-US/docs/Web/JavaScript/Reference/Regular_expressions/Word_boundary_assertion
- /en-US/docs/Web/JavaScript/Reference/Regular_expressions
Flaws (5)
Note! 23 documents with no flaws that don't need to be listed. 🎉
URL: /en-US/docs/Web/JavaScript/Reference/Regular_expressions/Named_capturing_group
Title: Named capturing group: (?<name>...)
Flaw count: 1
- bad_bcd_queries:
No BCD data for query: javascript.regular_expressions.named_capturing_group
URL: /en-US/docs/Web/JavaScript/Reference/Regular_expressions/Unicode_character_class_escape
Title: Unicode character class escape: \p{...}, \P{...}
Flaw count: 1
- bad_bcd_queries:
No BCD data for query: javascript.regular_expressions.unicode_character_class_escape
URL: /en-US/docs/Web/JavaScript/Reference/Regular_expressions/Non-capturing_group
Title: Non-capturing group: (?:...)
Flaw count: 1
- bad_bcd_queries:
No BCD data for query: javascript.regular_expressions.non-capturing_group
URL: /en-US/docs/Web/JavaScript/Reference/Regular_expressions/Literal_character
Title: Literal character: a, b
Flaw count: 1
- bad_bcd_queries:
No BCD data for query: javascript.regular_expressions.literal_character
URL: /en-US/docs/Mozilla/Firefox/Releases/78
Title: Firefox 78 for developers
Flaw count: 1
- macros:
/en-US/docs/Web/API/ParentNode/replaceChildren redirects to /en-US/docs/Web/API/Element/replaceChildren
External URLs (17)
URL: /en-US/docs/Web/JavaScript/Reference/Regular_expressions
Title: Regular expressions
- https://en.wikipedia.org/wiki/Regular_expression (1 time) (Note! This may be a new URL 👀)
- https://www.perl.org/ (1 time) (Note! This may be a new URL 👀)
URL: /en-US/docs/Web/JavaScript/Reference/Regular_expressions/Word_boundary_assertion
Title: Word boundary assertion: \b, \B
- https://unicode.org/Public/UCD/latest/ucd/CaseFolding.txt (1 time) (Note! This may be a new URL 👀)
URL: /en-US/docs/Web/JavaScript/Reference/Regular_expressions/Character_class_escape
Title: Character class escape: \d, \D, \w, \W, \s, \S
- https://unicode.org/Public/UCD/latest/ucd/CaseFolding.txt (1 time) (Note! This may be a new URL 👀)
URL: /en-US/docs/Web/JavaScript/Reference/Regular_expressions/Named_capturing_group
Title: Named capturing group: (?<name>...)
- https://eslint.org/docs/rules/prefer-named-capture-group (1 time) (Note! This may be a new URL 👀)
URL: /en-US/docs/Web/JavaScript/Reference/Regular_expressions/Unicode_character_class_escape
Title: Unicode character class escape: \p{...}, \P{...}
- https://2ality.com/2017/07/regexp-unicode-property-escapes.html (1 time) (Note! This may be a new URL 👀)
- https://en.wikipedia.org/wiki/Unicode_character_property (1 time) (Note! This may be a new URL 👀)
- https://tc39.es/ecma262/ (1 time) (Note! This may be a new URL 👀)
- https://tc39.es/ecma262/multipage/text-processing.html (2 times) (Note! This may be a new URL 👀)
- https://unicode.org/Public/UCD/latest/ucd/PropertyValueAliases.txt (1 time) (Note! This may be a new URL 👀)
- https://unicode.org/reports/tr18/ (2 times) (Note! This may be a new URL 👀)
- https://unicode.org/reports/tr24/ (1 time) (Note! This may be a new URL 👀)
- https://util.unicode.org/UnicodeJsps/character.jsp?a=0061 (1 time) (Note! This may be a new URL 👀)
URL: /en-US/docs/Web/JavaScript/Guide/Regular_expressions/Groups_and_backreferences
Title: Groups and backreferences
- https://github.com/zloirock/core-js (2 times)
- https://tc39.es/ecma262/multipage/text-processing.html (1 time)
URL: /en-US/docs/Web/JavaScript/Guide/Regular_expressions/Assertions
Title: Assertions
URL: /en-US/docs/Mozilla/Firefox/Releases/78
Title: Firefox 78 for developers
- https://bugzil.la/1361876 (1 time) (Note! This may be a new URL 👀)
(comment last updated: 2023-05-04 08:17:37)
I for one really like the way this is going @Josh-Cena, folks seem quite positive about this content :)
I'll await a little more feedback from others, but I might open a tracking bug for the work moving forward (the roadmap is still a few weeks away which is a shame because this is the perfect thing for it)
Update: I have completed the scaffolds for all pages, but I'm missing a lot of examples, and I also plan to rearrange documentation about regexes in other places. Now is a good time to comment on the description sections, because I feel like I've stuffed in a lot of obscure details.
Oops—@bsmth I rebased without pulling. In case you still have your commits locally, could you force push again? I'm not sure if https://github.com/mdn/content/commit/84869d6ee1c23050873c0ed74a05b3d8b9036e07 used to be pushed to this branch.
BCD for the patterns has been merged in https://github.com/mdn/browser-compat-data/pull/18966
This pull request has merge conflicts that must be resolved before it can be merged.
Hi @bsmth because V8 recently shipped the v flag, I'd like to get this reviewed & merged soon so I can work on its reference and put them "in the right place".