Add ability to specify regular expression as string in options

This is handy when you are using JSON files for tasks configuration.