Refactored some of the code involving compiling the main regular expression.
Refactored some of the code involving compiling the main regular expression.

rismalrv/pystache,jrnold/pystache,harsh00008/pystache,arlenesr28/pystache,defunkt/pystache,arlenesr28/pystache,nitish116/pystache,beni55/pystache,jrnold/pystache,charbeljc/pystache,arlenesr28/pystache,charbeljc/pystache,harsh00008/pystache,harsh00008/pystache,beni55/pystache,nitish116/pystache,rismalrv/pystache,nitish116/pystache,rismalrv/pystache