move regular expressions out of .parse

no need to create the same regular expressions over and over again.
Merge pull request #1 from barisusakli/patch-1

move regular expressions out of .parse