Based shell command recognition on a regex.