add support for curly brackets with the --pattern option, fixes #868
Merge pull request #869 from rkh/curly-pattern

add support for curly brackets with the --pattern option, fixes #868