substituted regexes pb_base/common.py by pre-compiled regexes