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
How about this expression?
System.Text.RegularExpressions.Regex.Match(YourString,"\S.*(?=\/)").Tostring


Regards
Gokul
1 Like
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.
