remove regex error message on successful match