Imports System.Text.RegularExpressions
Module Module1
Sub Main()
Dim s As String = "VB.NET" & vbLf & "C#" & vbLf & "Java" & vbLf & "Python" & vbLf
s = Regex.Replace(s, "\n", " ")
Console.WriteLine(s)
End Sub
End Module
' run:
'
' VB.NET C# Java Python