Add regex support to spray

Fixes issue #3