Initial work on regular expression
Fixed console for debug