Regex to extract numbers with forward slash

Hi,
I need to extract numbers like this 03445747/42794509 from text file using regular expression.
The numbers will be like this “text 03445747/42794509 text”.
From here I need to extract only 03445747/42794509, the numbers can be anything.

Any help on this ?

HI @Debartha_Mitra_DE

Try with this expression
System.Text.RegularExpressions.Regex.Match(“text 6181816/654846156 text”,“\d+/\d+”).Tostring

Hope this helps
Regards
Sudharsan

1 Like

Hi @Debartha_Mitra_DE

Try with this expression

System.Text.RegularExpressions.Regex.Match(“text 6181816/654846156 text”,"\d+\/\d+").Tostring.Trim

image

Regards
Gokul

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.