我试图从响应数据中提取特定值
以下是响应数据:
{"results": [{"Withdrawn": false,"WorkflowID": 1169,"Subject": "@@@Legal Hold Testing@@@ Tue, 30 Aug 2016","DueDate": new Date(1472083200000),"SCUserID": 29625,"AdminEmail": "puventhira-mannen-pragasam.selladurai@hpe.com?subject=Ask%20a%20Question%20-%20@@@Legal%20Hold%20Testing@@@%20Tue,%2030%20Aug%202016","CC": false,"TypeIconURL": "/resources/images/icon_notification.gif","eventLink": "https://c9w24074.itcs.hpecorp.net/lfserver?DFS__Action=RouteGetForm&DFS__DataSource=1&DFS__TargetWindow=45361a9d438b352de521f444_476622041&DFS__EventID=45361a9d438b352de521f444_476622041&**DFS__SessionID=2x7635cd045f99c79z156c847a5eezx4094guxbpsxohxgoh**","EventID": "45361a9d438b352de521f444_476622041","WorkflowType": "Notice"}
我想要DFS__SessionID=[value]
我怎样才能做到这一点?
答案 0 :(得分:3)
您应该使用Regular Expression Extractor。
以下是DFS__SessionID = [value]的正则表达式:
DFS__SessionID=(\w*)
您可以测试此表达式here。
答案 1 :(得分:-1)
使用图像中提到的常规exp,并使用变量$ {sessionid}来获取动态值