This is a simple regex parser that takes the basic regex expressions of *?.^$