>point me in the right direction.
Regular Expression (Regex class)
Dim str = "I {love|like} {blue|red|orange|pink} its my {favorite|worst} color "
str = Regex.Replace(str, "(\{|\})", "")
str = Regex.Replace(str, "((\w+)+\|)", "")
Console.WriteLine(str)
Reputation Points: 2136
Solved Threads: 1228
Posting Genius
Offline 6,525 posts
since Oct 2008