Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regex editorial improvements, and permit "." #1470

Merged
merged 6 commits into from
Jun 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
16 changes: 9 additions & 7 deletions jsonschema-core.md
Original file line number Diff line number Diff line change
Expand Up @@ -400,14 +400,16 @@ tokens:

- individual Unicode characters, as defined by the [JSON
specification](#rfc8259);
- simple character classes ([abc]), range character classes ([a-z]);
- complemented character classes ([^abc], [^a-z]);
- simple quantifiers: "+" (one or more), "*" (zero or more), "?" (zero or one),
and their lazy versions ("+?", "*?", "??");
- range quantifiers: "{x}" (exactly x occurrences), "{x,y}" (at least x, at most
- simple atoms: `.` (any character except line terminator);
- simple character classes (`[abc]`), range character classes (`[a-z]`);
- complemented simple character classes (`[^abc]`);
- complemented range character classes (`[^a-z]`);
- simple quantifiers: `+` (one or more), `*` (zero or more), `?` (zero or one),
and their lazy versions (`+?`, `*?`, `??`);
- range quantifiers: `{x}` (exactly x occurrences), `{x,y}` (at least x, at most
y, occurrences), {x,} (x occurrences or more), and their lazy versions;
- the beginning-of-input ("^") and end-of-input ("$") anchors;
- simple grouping ("(...)") and alternation ("|").
- the beginning-of-input (`^`) and end-of-input (`$`) anchors;
- simple grouping (using `(` and `)`) and alternation (`|`).

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