How to delete only specific character and the end of a string

@Hakim_Asyraf - Please try this

System.text.RegularExpressions.Regex.Replace("000734|000143|012392|643221|213331|","\|$",string.Empty)

System.text.RegularExpressions.Regex.Replace(YourString","\|$",string.Empty)

Output

Hope this helps…

1 Like