I have the below response from the API:


Question: How to extract the Verification_token value only notice that the whole data response is a full value attached to each other?

enter image description here

1 Answer 1


Your regular expression extracts the whole contents of data attribute, why would you expect it to return the partial value.

If you need the token only - you need to amend your regular expression to something like:



enter image description here

More information:

  • Thank you soo much , it works :D
    – SDiab
    Feb 10, 2022 at 9:30

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.