From 88316d5b8fa5e98b1ffb5bf44158323db79a30c2 Mon Sep 17 00:00:00 2001 From: Andrew Gallant Date: Sat, 15 Apr 2023 08:29:15 -0400 Subject: [PATCH] doc: tweak presentation of \pN syntax The wording appears to be a little unclear, so we switch it around a bit. Fixes #975 --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 97d304787..82c1b77ad 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -287,9 +287,9 @@ a separate crate, [`regex-syntax`](https://docs.rs/regex-syntax). . any character except new line (includes new line with s flag) \d digit (\p{Nd}) \D not digit -\pN One-letter name Unicode character class +\pX Unicode character class identified by a one-letter name \p{Greek} Unicode character class (general category or script) -\PN Negated one-letter name Unicode character class +\PX Negated Unicode character class identified by a one-letter name \P{Greek} negated Unicode character class (general category or script)