Regex Help to replace substring with another

System.Text.RegularExpressions.Regex.Replace(<Your String>,"(?=.*)\s+(?=Width)",Environment.NewLine)

Replace with your string variable. Should be good to go.

Regards,
Nithin

1 Like