be able to use the regexp outside a model