regex test for basename