here I am trying to pass payment id from request to response
2 Answers
Change to simpler regex notice the "
at the end:
ID=(.+?)"
- Your Regular Expression Extractor scope is not correct, you should be extracting the value from the document Body
- You need to escape this
?
betweenhtm
andPaymentID
as question mark is a meta character and it must be escaped unless it is in group or in class
Suggested configuration:
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.