diff --git a/doc/_regexp.rdoc b/doc/_regexp.rdoc index ffba14e78f..7b71eee984 100644 --- a/doc/_regexp.rdoc +++ b/doc/_regexp.rdoc @@ -838,13 +838,17 @@ These are also commonly used: - /\p{Emoji}/: Unicode emoji. - /\p{Graph}/: Non-blank character (excludes spaces, control characters, and similar). -- /\p{Word}/: A member of one of the following Unicode character - categories (see below): +- /\p{Word}/: A member in one of these Unicode character + categories (see below) or having one of these Unicode properties: - - +Mark+ (+M+). - - +Letter+ (+L+). - - +Number+ (+N+) - - Connector Punctuation (+Pc+). + - Unicode categories: + - +Mark+ (+M+). + - Decimal Number (+Nd+) + - Connector Punctuation (+Pc+). + + - Unicode properties: + - +Alpha+ + - Join_Control - /\p{ASCII}/: A character in the ASCII character set. - /\p{Any}/: Any Unicode character (including unassigned characters). @@ -993,12 +997,16 @@ Ruby also supports these (non-POSIX) bracket expressions: - /[[:ascii:]]/: Matches a character in the ASCII character set. - /[[:word:]]/: Matches a character in one of these Unicode character - categories (see below): + categories or having one of these Unicode properties: - - +Mark+ (+M+). - - +Letter+ (+L+). - - +Number+ (+N+) - - Connector Punctuation (+Pc+). + - Unicode categories: + - +Mark+ (+M+). + - Decimal Number (+Nd+) + - Connector Punctuation (+Pc+). + + - Unicode properties: + - +Alpha+ + - Join_Control === Comments