diff --git a/lib/core/agent.py b/lib/core/agent.py index fd8e6cde1..e3b083e25 100644 --- a/lib/core/agent.py +++ b/lib/core/agent.py @@ -637,11 +637,11 @@ class Agent: retVal = None if inpStr: - regObj = getCompiledRegex("(?P%s.*?%s)" % (PAYLOAD_DELIMITER, PAYLOAD_DELIMITER)) + regObj = getCompiledRegex("%s(?P.*?)%s" % (PAYLOAD_DELIMITER, PAYLOAD_DELIMITER)) match = regObj.search(inpStr) if match: - retVal = match.group("result")[1:-1] + retVal = match.group("result") return retVal