adds file to convert tree to regex string