How to extract the particular word

Hi everyone,

I have the system i need to extract particular word like below

Eg. Nw/ 1 per value/ age /more
Eg.Nw /age/1 per value

Output: 1 per value

1 per value may be on any index …can you plz help on this

Hi @vaishali

Try regex

image

Refer

Hi @vaishali

Try it out

System.Text.RegularExpressions.Regex.Match(Inputstring,"\d\s\S{3}\s\S{5}").Tostring

image

Regards
Gokul