Using REGEX with ASP.NET / VB, how can I format this:
Any text that is immediately after a line break (or at the very beginning) should be bold if there is a colon in the first sentence, from the beginning to the colon.
This should be bold:
this should not be bold -- this should not be bold: it it comes after a bold part.
This should also be bold:
it is at the beginning.
Nothing in this line should be bold. This is a colon: however there is a period before the colon.
My code below does not work.
input = RegularExpressions.Regex.Replace(input, VbNewLine + "\W:", VbNewLine + "<strong>$1</strong>")