added a simple regex matcher