Add in a regex option.

Regex and Str replace are mutually exclusive.

Include a bit more documentation as well.