How to check if a text contains this structure?

Hello,

I would like to check a if a text contains this structure: number/number
for instance: 5/5, 6/6, 9/9…

Thanks

Hi can you please share the actual string and what exactly you are trying to achieve with it ?

Hi there @pal1910,
You can use Regex, with the below pattern:
[0-9]/[0-9]

If you had the text:
5/5 6/6 7/7
1/1 2/2 4/4

The activity IsMatch would return True.

While the activitiy Matches would return an iEnumerable of Matches, including:

  • 5/5
  • 6/6
  • 7/7
  • 1/1
  • 2/2
  • 4/4

Thanks in advance,
Josh