import re def f1(data): p = re.compile('(?P<dept>[A-Z]{2,3}) (?P<num>[0-9]{3})') return p.search(data)
Standard input is empty
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!