Improve input

This changes remove `-shell-command` interfaces. We do away with the need to
extra escaping characters. We can use just PCRE syntax now.