implemented Regex Query Tool