where pattern is just a string regex