[autotex] Filter file with regular expressions instead of endings