-1

Regular expressionRequest here I am trying to pass payment id from request to response

Request Body

2 Answers 2

0

Change to simpler regex notice the " at the end:

 ID=(.+?)"
1
  • Still same issue.can you help me on this
    – syed
    Commented Jul 29, 2019 at 12:43
0
  1. Your Regular Expression Extractor scope is not correct, you should be extracting the value from the document Body
  2. You need to escape this ? between htm and PaymentID as question mark is a meta character and it must be escaped unless it is in group or in class

Suggested configuration:

enter image description here

If you're not too comfortable with regular expressions you could go for Boundary Extractor instead, in particular this case it would be much easier.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.