Fix regex and retries on exception.