parameters: (self, value, payload)
return_statement: return re.sub("(?s)(%s.*?%s)" % (_, _), ("%s%s%s" % (PAYLOAD_DELIMITER, payload, PAYLOAD_DELIMITER)).replace("\\", r"\\"), value) if value else value
docstring: Replaces payload inside the input string with a given payload
docstring_summary: Replaces payload inside the input string with a given payload
docstring_tokens: Replaces payload inside the input string with a given payload
function: def replacePayload(self, value, payload):
          """
          Replaces payload inside the input string with a given payload
          """
  
          _ = re.escape(PAYLOAD_DELIMITER)
          return re.sub("(?s)(%s.*?%s)" % (_, _), ("%s%s%s" % (PAYLOAD_DELIMITER, payload, PAYLOAD_DELIMITER)).replace("\\", r"\\"), value) if value else value
function_tokens: def replacePayload ( self , value , payload ) : _ = re . escape ( PAYLOAD_DELIMITER ) return re . sub ( "(?s)(%s.*?%s)" % ( _ , _ ) , ( "%s%s%s" % ( PAYLOAD_DELIMITER , payload , PAYLOAD_DELIMITER ) ) . replace ( "\\" , r"\\" ) , value ) if value else value