How to check if the extracted text is in the correct format ? The expected format is 00/00

I want to check the format of the extracted text if its the correct format or not . How can i achieve this ?

The expected format is 00/00.

Where this 0 in the above format can be any number when extracted like for example : 01/01; 23/01; 02/19 so on …

@Ragavi_Rajasekar

For this you can use regex format
take if condition and write below exepression in codition

System.text.regularexpressions.regex.ismatch(yourstring,“^\d{2}/\d{2}$”)

It gives the exact match


try this now and mark post as solution if find it helpful

Happy Automation!!

Hi @Ragavi_Rajasekar

Use the Is Match with pattern "^\d{2}/\d{2}$" to check if the extracted text matches the format 00/00. If it returns True, the format is correct; otherwise, it’s not.

Happy Automation