lib.py - add some re usage.