Edit: Simple Regular Expression Parser

`str` is a reserved python word, so change it to `string`.
Change `expr` to `regex` for clarity.
Explicitly state that no regex validation is being done.