Regexp support for resource names

Fixes #180