Split a string between 2 characters


I want to split the below mentioned alpha numeric code and get the string between two slashes.
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


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.