Extrcat Text from String

Hi All,

I need to extract “5000001305” from below text

Material document 5000001305 posted

Hi @shruthi_arali

How about this Regular expression?

System.Text.RegularExpressions.Regex.Match(YourString,"(?<=document\s)\d+").Tostring

or

System.Text.RegularExpressions.Regex.Match(YourString,"\d+").Tostring

image

Regards
Gokul

1 Like

@shruthi_arali

Please try this

System.Text.RegularExpressions.Regex.Match(YourString,"\d+").Tostring

Cheers

1 Like