summaryrefslogtreecommitdiff
path: root/src/pyparsing.py
diff options
context:
space:
mode:
authorPaul McGuire <ptmcg@austin.rr.com>2016-05-18 12:42:29 +0000
committerPaul McGuire <ptmcg@austin.rr.com>2016-05-18 12:42:29 +0000
commit5cb931b14b8f544637ceb44c31a9cc22e27765a4 (patch)
tree16b52892c565983d1f822397271a0d5ed19f818a /src/pyparsing.py
parent9c48cdd37b1db0f1e3b304afe03a302ae36a683d (diff)
downloadpyparsing-git-5cb931b14b8f544637ceb44c31a9cc22e27765a4.tar.gz
Add UUID to pyparsing_common
Diffstat (limited to 'src/pyparsing.py')
-rw-r--r--src/pyparsing.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/pyparsing.py b/src/pyparsing.py
index 3383046..177d833 100644
--- a/src/pyparsing.py
+++ b/src/pyparsing.py
@@ -58,7 +58,7 @@ The pyparsing module handles some of the problems that are typically vexing when
"""
__version__ = "2.1.5"
-__versionTime__ = "18 May 2016 05:17 UTC"
+__versionTime__ = "18 May 2016 06:01 UTC"
__author__ = "Paul McGuire <ptmcg@users.sourceforge.net>"
import string
@@ -3932,7 +3932,7 @@ class pyparsing_common:
"""any int or real number, returned as float"""
identifier = Word(alphas+'_', alphanums+'_').setName("identifier")
- """typical code identifier"""
+ """typical code identifier (leading alpha or '_', followed by 0 or more alphas, nums, or '_')"""
ipv4_address = Regex(r'(25[0-5]|2[0-4][0-9]|1?[0-9]{1,2})(\.(25[0-5]|2[0-4][0-9]|1?[0-9]{1,2})){3}').setName("IPv4 address")
"IPv4 address (C{0.0.0.0 - 255.255.255.255})"
@@ -3954,6 +3954,8 @@ class pyparsing_common:
iso8601_datetime = Regex(r'\d{4}-\d\d-\d\dT\d\d:\d\d(:\d\d(\.\d*)?)?(Z|[+-]\d\d:?\d\d)?').setName("ISO8601 datetime")
"ISO8601 datetime (C{yyyy-mm-ddThh:mm:ss.s(Z|+-00:00)})"
+ uuid = Regex(r'[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}').setName("UUID")
+ "UUID (C{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx})"
if __name__ == "__main__":