Use getSimpleName() instead of  a regex matcher