I am working on a project and i want to split a string like below
DEV~Hi there is Sunday Tommorrow=1
I want to split this string as I want only text which is between the tilde(~) sign and equal sign(=). I also don't need ~ and = sign.
I have tried following code but not able to know how to split the string with tilde
obj.Code.Trim().Split('=')[1].Trim()
With the above code I can only split the string from = to sign but I want to remove the ~ sign and text on the left hand side also.
Can anyone suggest the solution?