Skip to content

Commit d17a0fa

Browse files
committed
considerations: allow multiple ranges in character classes
Signed-off-by: Stephen J Day <[email protected]>
1 parent b692dee commit d17a0fa

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

considerations.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,13 @@ range := [A-Z]
6060
The above symbol "set" would match one character of either "a", "b" or "c".
6161
The symbol "range" would match any character, "A" to "Z", inclusive.
6262
Currently, only matching for 7-bit ascii literals and character classes is defined, as that is all that is required by this specification.
63+
Multiple character ranges and explicit characters can be specified in a single character classes, as follows:
64+
65+
```
66+
multipleranges := [a-zA-Z=-]
67+
```
68+
69+
The above matches the characters in the range `A` to `Z`, `a` to `z` and the individual characters `-` and `=`.
6370

6471
Expressions can be made up of one or more expressions, such that one must be followed by the other.
6572
This is known as an implicit concatenation operator.

0 commit comments

Comments
 (0)