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

Request Body


Change to simpler regex notice the " at the end:

  • Still same issue.can you help me on this
    – syed
    Jul 29 '19 at 12:43
  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, privacy policy and cookie policy

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