Difference between \p and \P in Unicode RegExps is never explained #38168
Labels
closed: question
A user misinterpretation or support question. No action required.
Content:JS
JavaScript docs
MDN URL
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Regular_expressions/Unicode_character_class_escape
What specific section or headline is this issue about?
No response
What information was incorrect, unhelpful, or incomplete?
Hi! Thanks for the all work on MDN.
On the page about \p and \P escapes for Unicode RegExp, as far as I can tell, there is no mention of the fact that \p means "match the category" and \P means "match the negated category"
What did you expect to see?
There should be a line explaining that one is the negation of the other.
Do you have any supporting links, references, or citations?
No response
Do you have anything more you want to share?
No response
MDN metadata
Page report details
en-us/web/javascript/reference/regular_expressions/unicode_character_class_escape
The text was updated successfully, but these errors were encountered: