@@ -87,7 +87,7 @@ Some characters, like ``'|'`` or ``'('``, are special. Special
87
87
characters either stand for classes of ordinary characters, or affect
88
88
how the regular expressions around them are interpreted.
89
89
90
- Repetition qualifiers (``* ``, ``+ ``, ``? ``, ``{m,n} ``, etc) cannot be
90
+ Repetition operators or quantifiers (``* ``, ``+ ``, ``? ``, ``{m,n} ``, etc) cannot be
91
91
directly nested. This avoids ambiguity with the non-greedy modifier suffix
92
92
``? ``, and with other modifiers in other implementations. To apply a second
93
93
repetition to an inner repetition, parentheses may be used. For example,
@@ -146,10 +146,10 @@ The special characters are:
146
146
single: ??; in regular expressions
147
147
148
148
``*? ``, ``+? ``, ``?? ``
149
- The ``'*' ``, ``'+' ``, and ``'?' `` qualifiers are all :dfn: `greedy `; they match
149
+ The ``'*' ``, ``'+' ``, and ``'?' `` quantifiers are all :dfn: `greedy `; they match
150
150
as much text as possible. Sometimes this behaviour isn't desired; if the RE
151
151
``<.*> `` is matched against ``'<a> b <c>' ``, it will match the entire
152
- string, and not just ``'<a>' ``. Adding ``? `` after the qualifier makes it
152
+ string, and not just ``'<a>' ``. Adding ``? `` after the quantifier makes it
153
153
perform the match in :dfn: `non-greedy ` or :dfn: `minimal ` fashion; as *few *
154
154
characters as possible will be matched. Using the RE ``<.*?> `` will match
155
155
only ``'<a>' ``.
@@ -160,11 +160,11 @@ The special characters are:
160
160
single: ?+; in regular expressions
161
161
162
162
``*+ ``, ``++ ``, ``?+ ``
163
- Like the ``'*' ``, ``'+' ``, and ``'?' `` qualifiers , those where ``'+' `` is
163
+ Like the ``'*' ``, ``'+' ``, and ``'?' `` quantifiers , those where ``'+' `` is
164
164
appended also match as many times as possible.
165
- However, unlike the true greedy qualifiers , these do not allow
165
+ However, unlike the true greedy quantifiers , these do not allow
166
166
back-tracking when the expression following it fails to match.
167
- These are known as :dfn: `possessive ` qualifiers .
167
+ These are known as :dfn: `possessive ` quantifiers .
168
168
For example, ``a*a `` will match ``'aaaa' `` because the ``a* `` will match
169
169
all 4 ``'a'``s, but, when the final ``'a' `` is encountered, the
170
170
expression is backtracked so that in the end the ``a* `` ends up matching
@@ -198,15 +198,15 @@ The special characters are:
198
198
``{m,n}? ``
199
199
Causes the resulting RE to match from *m * to *n * repetitions of the preceding
200
200
RE, attempting to match as *few * repetitions as possible. This is the
201
- non-greedy version of the previous qualifier . For example, on the
201
+ non-greedy version of the previous quantifier . For example, on the
202
202
6-character string ``'aaaaaa' ``, ``a{3,5} `` will match 5 ``'a' `` characters,
203
203
while ``a{3,5}? `` will only match 3 characters.
204
204
205
205
``{m,n}+ ``
206
206
Causes the resulting RE to match from *m * to *n * repetitions of the
207
207
preceding RE, attempting to match as many repetitions as possible
208
208
*without * establishing any backtracking points.
209
- This is the possessive version of the qualifier above.
209
+ This is the possessive version of the quantifier above.
210
210
For example, on the 6-character string ``'aaaaaa' ``, ``a{3,5}+aa ``
211
211
attempt to match 5 ``'a' `` characters, then, requiring 2 more ``'a'``s,
212
212
will need more characters than available and thus fail, while
0 commit comments