我想提取由JMeter中分隔的正則表達式提取器中的破折號' - '分隔的以下序列代碼的每個部分。REGEX的值提取 - JMeter
串行代碼:cdaf57ce-1a50-42fc-b548-2c84ad7911a8
預期的結果是:
Regular Expression Extractor 1: cdaf57ce
Regular Expression Extractor 2: 1a50
Regular Expression Extractor 3: 42fc
Regular Expression Extractor 4: b548
Regular Expression Extractor 5: 2c84ad7911a8
我想每個以下的正則表達式:
Regular Expression Extractor 1: (\w{8})-
Regular Expression Extractor 2: [^(\w{8})]-(\w{4})-[^(\w{4})]-[^(\w{4})]-[^(\w{12})]
Regular Expression Extractor 3: [^(\w{8})]-[^(\w{4})]-(\w{4})-[^(\w{4})]-[^(\w{12})]
Regular Expression Extractor 4: [^(\w{8})]-[^(\w{4})]-[^(\w{4})]-(\w{4})-[^(\w{12})]
Regular Expression Extractor 5: -(\w{12})
第一和最後的正常工作,但其他人沒有。
感謝
謝謝Nachiket,它工作得很好 – 2014-12-04 08:07:56
請接受&如果有幫助,請提出答案 – 2014-12-04 08:26:43