hi all,
i have string like BSNL/058/0001, BSNL/06158/0001 and i want to get string between special character '/'. i need result like 058, 06158. how to solve this issue. Thanks in advance
Please refer below code
C#
string code = "BSNL/058/0001"; string result = code.Split('/')[1];
VB
Dim code As String = "BSNL/058/0001" Dim result As String = code.Split("/"C)(1)
I hope this will help you out.
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.