walkdir regex fixes escaping \. and [jpgJPG]{3}