Files
CSM14204-Compilers/exercises/1.py
T
2026-06-24 17:24:04 +02:00

9 lines
156 B
Python

import re
re_1 = r'hello!*'
re_2 = r'hello!* +there'
re_3 = r'(\+|\-|\*|\/)'
re_4 = r'\-?[0-9]+'
re_5 = r'\"([a-z]+ *)+\"'
re_6 = r'\"([[a-z]|\\.]+ *)+\"'