implemented shouldRespond() with regex