switched to using compiling pattern match into a regular expression and using re to do pattern match
working pattern matching for * and **
latest TODO