fixed default pattern string
better regexp
prefix as a function supported