diff options
author | Paul McGuire <ptmcg@austin.rr.com> | 2016-05-17 21:56:43 +0000 |
---|---|---|
committer | Paul McGuire <ptmcg@austin.rr.com> | 2016-05-17 21:56:43 +0000 |
commit | f3bfed03b7b4f375310b795725ff7fecdbfb0c69 (patch) | |
tree | 11830a4b8060758111f88f6dc770828555019b34 /src/examples/invRegex.py | |
parent | 9a21c3719c424361ea770f0d03bb3ef17165710d (diff) | |
download | pyparsing-git-f3bfed03b7b4f375310b795725ff7fecdbfb0c69.tar.gz |
Update pyparsing code practices
Diffstat (limited to 'src/examples/invRegex.py')
-rw-r--r-- | src/examples/invRegex.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/examples/invRegex.py b/src/examples/invRegex.py index 5d9a393..b6fe1f1 100644 --- a/src/examples/invRegex.py +++ b/src/examples/invRegex.py @@ -161,8 +161,8 @@ def parser(): reNonCaptureGroup = Suppress("?:")
reDot = Literal(".")
repetition = (
- ( lbrace + Word(nums).setResultsName("count") + rbrace ) |
- ( lbrace + Word(nums).setResultsName("minCount")+","+ Word(nums).setResultsName("maxCount") + rbrace ) |
+ ( lbrace + Word(nums)("count") + rbrace ) |
+ ( lbrace + Word(nums)("minCount")+","+ Word(nums)("maxCount") + rbrace ) |
oneOf(list("*+?"))
)
|