Skip to content

Commit

Permalink
Clarify anchored and unanchored RE sentence
Browse files Browse the repository at this point in the history
  • Loading branch information
rartino authored Jan 14, 2024
1 parent ce9d0a1 commit 1952025
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion optimade.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3984,5 +3984,5 @@ Hence, an OPTIMADE regex is a regular expression that adheres to `ECMA-262, sect

Note that compared to the JSON Schema standard, lazy quantifiers (``+?``, ``*?``, ``??``) are NOT included, nor are range quantifiers (``{x}``, ``{x,y}``, ``{x,}``).

Unless explicitly anchored, the expression is evaluated unanchored.
The expression matches the string at any position unless it contains a leading beginning-of-input (``^``) or trailing end-of-input (``$``) anchor listed above, i.e., the anchors are not implicitly assumed.
For example, the OPTIMADE regex "es" matches "expression".

0 comments on commit 1952025

Please sign in to comment.