How to search in the string for two characters "/" separated by four digits

how to search in the string for two characters “/” separated by four digits, example:

2222222/4444/66666666

@artq2

Welcome to our uipath community.

Could you please tell more details for better understanding

Do you want to read 4444 from above string ?

I want to check if the string contains: / four digits /

@artq2

Try this.

     str = "2222222/4444/66666666"
     IF str.Split("/"c)(1).Length = 4
     Then it's correct one
      Else it's wrong

thank you works, and how do you look at an expression that has any number of digits between the characters / /
/ any number of digits /

1 Like

@artq2

You can do like this also. Find index of first and last slash “/” and then use substring to find length of the text in between those.

I’m afraid it might be too difficult for my available skills

@artq2

Just we have to use String manipulation functions to do this. And also it will be same String function we used in other programming languages just syntax will change. That’s it. By keep on doing new tasks then you can learn it easily. Don’t worry. If you face any issues then let us know and we all are ready to help you whenever you need our assistance and just it matter of one post.

thanks I will try