to add r.py for regular pattern search