with regular expressions+tests