Some changes to the analyze script , get the reg exp from outside