Regexhelp

Hi…all

I need help on regex

Var= Case : c123456 > flexible

Variable is having this data in this i need to get
C123456

After semicon before > always format will be same

HI @Arya_Squares

Try with this regex expression

System.Text.RegularExpressions.Regex.Match(YourString,"(?<=Case\s:\s)\S.*(?=>)").Tostring

image

Regards
Gokul

Alternative method @Arya_Squares

You can also try with Split expression

 split(split("Case : c123456 > flexible",":")(1),">")(0)

image

Regards
Gokul

1 Like

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