java - How can I extract Regular Expression in JMeter for the following?
问题描述
How can I extract only KK&JK from the following response in JMeter using Regular Expression Extractor?
<es2:ITEM>C2231597H88-KK&JK-M13122</es2:ITEM>
In the above response C2231597H88 is always 11 characters and M13122 is always 6 characters, but the number of characters for the value KK&JK in this example can change if that helps.
If I do <es2:ITEM>(.+?)<
I get the whole thing C2231597H88-KK&JK-M13122, but I need to capture only KK&JK.
解决方案
推荐阅读
- c++ - 编译时的不变检查
- javascript - 使用 Apps 脚本在 Google Docs 中的选定表上追加新行
- java - Java MongoDB 身份验证验证
- spring-boot - 错误序列化异常 - Spring Boot Kafka Consumer
- robotframework - RobotFramework - 如何编写代码以使用服务令牌(客户端 ID)和客户端密码绕过 cloudflare 身份验证来访问网站
- python-3.x - 在 python 中绘制来自 9 个频率和功率点的模拟波
- python - 如何在 Python 中与其他文件进行文件比较
- angular - 切换组件时,Angular 中的 Openlayers 映射为空白
- r - 对 str_split 使用模式向量,但同时排除某些模式
- php - 在简短描述字段中更改产品状态 Woocommerce