added a way to create raw-regex matching commands