V
V
vlad122003302021-08-07 11:11:54
Regular Expressions
vlad12200330, 2021-08-07 11:11:54

How to extract the code with a regular expression?

<p>To verify your email address, please use the following One Time Password (OTP):<\/p>\r\n            <p class=\"otp\">568529<\/p>\r\n

How can I extract the code "568529" with a regular expression. Wanted to try with \d{6} . But there is a lot of value with 6 digits.
- this value is unique can be somehow using it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladislav Orlov, 2021-09-06
@haveacess

https://regex101.com/r/P1TM9X/1

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question