A toy implementation of simple RegExp. Not for any serious use case.