The response body has the following html code.
I want to get the ProductId value
So I need to extract the response body
However, I get a error
> regex(href="/actions/Catalog.action?viewProduct=&productId 1 (100,0%)
=(.+?)">).find.exists, found nothing
How I can solve this?
Can you pls try escaping the forward slash(/), dot(.) and que(?) like below?
you can use https://regex101.com/ this website to validate your regex
Thanks, I thought the triple quotes were enough to scape the special characteres.
Triple quotes only save you from Java String escaping (inner double quotes and backslashes), not regex special characters escaping.