Skip to content

Commit 86ce2fe

Browse files
committed
Merge pull request #2 from JohnTroony/master
Added a note under quantifiers
2 parents 222fa9b + f702c90 commit 86ce2fe

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cheatsheet.rst

+3-1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ Quantifiers::
2626
{m} exactly 'm'
2727
{m,n} from m to n. 'm' defaults to 0, 'n' to infinity
2828
{m,n}? from m to n, as few as possible
29+
{,1} is the same as using ?
30+
{0,} is the same as using *
31+
{1,} is the same as using +
2932

3033
Special sequences::
3134

@@ -39,7 +42,6 @@ Special sequences::
3942
\w Alphanumeric: [0-9a-zA-Z_], or is LOCALE dependant
4043
\W Non-alphanumeric
4144
\Z End of string
42-
4345
\g<id> Match previous named or numbered group,
4446
e.g. \g<0> or \g<name>
4547

0 commit comments

Comments
 (0)