>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)
__avd
Posting Genius (adatapost)
8,647 posts since Oct 2008
Reputation Points: 2,136
Solved Threads: 1,241