summaryrefslogtreecommitdiff
path: root/src/examples/invRegex.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/examples/invRegex.py')
-rw-r--r--src/examples/invRegex.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/examples/invRegex.py b/src/examples/invRegex.py
index b6fe1f1..aea3b55 100644
--- a/src/examples/invRegex.py
+++ b/src/examples/invRegex.py
@@ -188,9 +188,9 @@ def count(gen):
return sum(1 for _ in gen)
def invert(regex):
- """Call this routine as a generator to return all the strings that
+ r"""Call this routine as a generator to return all the strings that
match the input regular expression.
- for s in invert("[A-Z]{3}\d{3}"):
+ for s in invert(r"[A-Z]{3}\d{3}"):
print s
"""
invReGenerator = GroupEmitter(parser().parseString(regex)).makeGenerator()