Split Text1

Hey Team
'I want to split text like my input is G_16_222477/2023
And I want Output as G_16_222477
Please help

@Kuldeep_Pandey ,

Try

OutputVariable= Split(YourVariable,"/")(0)

Output :
image

Regards,

Hi @Kuldeep_Pandey

How about this expression?

System.Text.RegularExpressions.Regex.Match(YourString,"\S.*(?=\/)").Tostring

image

image

Regards
Gokul

1 Like

HI @Kuldeep_Pandey

Try this

InputString.Split("/"c)(0)

or

System.Text.RegularExpressions.Regex.match(InputString,".*(?=\/)").ToSTring

Regards
Sudharsan

Thankyou Everyone

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