Added option to change the regex via -t"regex"