Simplistic Regular Expressions matcher. Based on http://swtch.com/~rsc/regexp/regexp2.html
Simple regex matcher.