diff --git a/TaskC38_TODO/solution.py b/TaskC38_TODO/solution.py new file mode 100644 index 0000000..9060665 --- /dev/null +++ b/TaskC38_TODO/solution.py @@ -0,0 +1,9 @@ +import re +import sys + +for line in sys.stdin: + match = re.match(r'^(ul\.|os\.|al\.)\s[A-ZĄĘÓĆŁŃŚŹŻ][a-ząęóćłńśźż]+\s([1-9]\d*)(\/[1-9]\d*|\sm\.\s[1-9]\d*)?$', line) + if match: + print(match.group(2)) + else: + print("")