I am trying to write a function to replace all LINE BREAKS in a string with HTML, using regular expressions. The code I am using is as follows:
Public Shared Function ToHtml(ByVal rawText As String) As String
' Variable declaration
Dim result As String = String.Empty
' Replace cariage returns with a '<br>'
result = Regex.Replace(rawText, "\b\r\n", "<br>")
' Return value
End Function ' ToHtml
Any reason why this would not work correctly?