Rename `regex` into `toRegExp`

Ref. #3.