diff options
Diffstat (limited to 'python/002-simple-re-within-string.py')
-rw-r--r-- | python/002-simple-re-within-string.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/python/002-simple-re-within-string.py b/python/002-simple-re-within-string.py index 5259418..65cdc62 100644 --- a/python/002-simple-re-within-string.py +++ b/python/002-simple-re-within-string.py @@ -1,3 +1,6 @@ +# part of https://fedorapeople.org/cgit/jpokorny/public_git/snippets.git +# (c) Jan Pokorny, license determined per COPYING file in the repository's root + version_start, version_stop = reduce( lambda acc, x: (acc[0] if acc[0] or not x[1].isdigit() else x[0]+1, acc[0] if not x[1].isdigit() else x[0]+1), |