Update documentation for [[:word:]] and \p{Word} in regexps
Onigmo uses Decimal_Number and not Number for these. Fixes [Bug #19417]
This commit is contained in:
parent
f75fef6622
commit
060f14bf62
@ -838,13 +838,17 @@ These are also commonly used:
|
|||||||
- <tt>/\p{Emoji}/</tt>: Unicode emoji.
|
- <tt>/\p{Emoji}/</tt>: Unicode emoji.
|
||||||
- <tt>/\p{Graph}/</tt>: Non-blank character
|
- <tt>/\p{Graph}/</tt>: Non-blank character
|
||||||
(excludes spaces, control characters, and similar).
|
(excludes spaces, control characters, and similar).
|
||||||
- <tt>/\p{Word}/</tt>: A member of one of the following Unicode character
|
- <tt>/\p{Word}/</tt>: A member in one of these Unicode character
|
||||||
categories (see below):
|
categories (see below) or having one of these Unicode properties:
|
||||||
|
|
||||||
- +Mark+ (+M+).
|
- Unicode categories:
|
||||||
- +Letter+ (+L+).
|
- +Mark+ (+M+).
|
||||||
- +Number+ (+N+)
|
- <tt>Decimal Number</tt> (+Nd+)
|
||||||
- <tt>Connector Punctuation</tt> (+Pc+).
|
- <tt>Connector Punctuation</tt> (+Pc+).
|
||||||
|
|
||||||
|
- Unicode properties:
|
||||||
|
- +Alpha+
|
||||||
|
- <tt>Join_Control</tt>
|
||||||
|
|
||||||
- <tt>/\p{ASCII}/</tt>: A character in the ASCII character set.
|
- <tt>/\p{ASCII}/</tt>: A character in the ASCII character set.
|
||||||
- <tt>/\p{Any}/</tt>: Any Unicode character (including unassigned characters).
|
- <tt>/\p{Any}/</tt>: Any Unicode character (including unassigned characters).
|
||||||
@ -993,12 +997,16 @@ Ruby also supports these (non-POSIX) bracket expressions:
|
|||||||
|
|
||||||
- <tt>/[[:ascii:]]/</tt>: Matches a character in the ASCII character set.
|
- <tt>/[[:ascii:]]/</tt>: Matches a character in the ASCII character set.
|
||||||
- <tt>/[[:word:]]/</tt>: Matches a character in one of these Unicode character
|
- <tt>/[[:word:]]/</tt>: Matches a character in one of these Unicode character
|
||||||
categories (see below):
|
categories or having one of these Unicode properties:
|
||||||
|
|
||||||
- +Mark+ (+M+).
|
- Unicode categories:
|
||||||
- +Letter+ (+L+).
|
- +Mark+ (+M+).
|
||||||
- +Number+ (+N+)
|
- <tt>Decimal Number</tt> (+Nd+)
|
||||||
- <tt>Connector Punctuation</tt> (+Pc+).
|
- <tt>Connector Punctuation</tt> (+Pc+).
|
||||||
|
|
||||||
|
- Unicode properties:
|
||||||
|
- +Alpha+
|
||||||
|
- <tt>Join_Control</tt>
|
||||||
|
|
||||||
=== Comments
|
=== Comments
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user