Skip to content

Commit a1c35bc

Browse files
committed
regex clarifications
Consistently "quote" examples. Split complemented simple and range class examples. Improve "(" .. ")" grouping example.
1 parent 822a7a6 commit a1c35bc

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

jsonschema-core.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -400,14 +400,15 @@ tokens:
400400

401401
- individual Unicode characters, as defined by the [JSON
402402
specification](#rfc8259);
403-
- simple character classes ([abc]), range character classes ([a-z]);
404-
- complemented character classes ([^abc], [^a-z]);
403+
- simple character classes ("[abc]"), range character classes ("[a-z]");
404+
- complemented simple character classes ("[^abc]"),
405+
complemented range character classes ("[^a-z]");
405406
- simple quantifiers: "+" (one or more), "*" (zero or more), "?" (zero or one),
406407
and their lazy versions ("+?", "*?", "??");
407408
- range quantifiers: "{x}" (exactly x occurrences), "{x,y}" (at least x, at most
408409
y, occurrences), {x,} (x occurrences or more), and their lazy versions;
409410
- the beginning-of-input ("^") and end-of-input ("$") anchors;
410-
- simple grouping ("(...)") and alternation ("|").
411+
- simple grouping ("(" and ")") and alternation ("|").
411412

412413
Finally, implementations MUST NOT take regular expressions to be anchored,
413414
neither at the beginning nor at the end. This means, for instance, the pattern

0 commit comments

Comments
 (0)