adding regex test

This allows the basename to be a real regex test which allows for basenames like: logstash-errorlog which didnt work in the previous condition test.