Split a string between 2 characters

Hi,

I want to split the below mentioned alpha numeric code and get the string between two slashes.
“GE/1129/21-22”
I don’t want to use Substring method as I ll have to specifiy the position then. I have been able to split the alpha numeric code (see screenshot) but how do I get just the middle part ?

1 Like

Hi
@tilarapiyush

Hope the below expression would help you resolve this

stroutput = Split(Strinput.ToString,”/“)(1).ToString.Trim

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