import re
testWords = ["(1) 教育類", "(2) 科學類", "(3) 語言類"]
pat = re.compile(r"\(\d\)\W(?P<type>.+)")
for w in testWords:
m = pat.search(w)
print(m.group("type"))
aW1wb3J0IHJlCgp0ZXN0V29yZHMgPSBbIigxKSDmlZnogrLpoZ4iLCAiKDIpIOenkeWtuOmhniIsICIoMykg6Kqe6KiA6aGeIl0KCnBhdCA9IHJlLmNvbXBpbGUociJcKFxkXClcVyg/UDx0eXBlPi4rKSIpCgpmb3IgdyBpbiB0ZXN0V29yZHM6CgltID0gcGF0LnNlYXJjaCh3KQoJcHJpbnQobS5ncm91cCgidHlwZSIpKQ==