diff --git a/lib/techniques/error/use.py b/lib/techniques/error/use.py index 2c33d2334..04ce9cca5 100644 --- a/lib/techniques/error/use.py +++ b/lib/techniques/error/use.py @@ -94,7 +94,7 @@ def _oneShotErrorUse(expression, field=None, chunkTest=False): if retVal is None or partialValue: try: while True: - check = "%s(?P.*?)%s" % (kb.chars.start, kb.chars.stop) + check = r"%s(?P.*?)%s" % (kb.chars.start, kb.chars.stop) trimcheck = r"%s(?P[^<\n]*)" % (kb.chars.start) if field: @@ -153,7 +153,7 @@ def _oneShotErrorUse(expression, field=None, chunkTest=False): logger.warn(warnMsg) if not kb.testMode: - check = "(?P.*?)%s" % kb.chars.stop[:2] + check = r"(?P[^<>\n]*?)%s" % kb.chars.stop[:2] output = extractRegexResult(check, trimmed, re.IGNORECASE) if not output: