fork(18) download
  1. Imports System
  2. Imports System.Text.RegularExpressions
  3.  
  4. Public Class Test
  5. Public Shared Sub Main()
  6. Dim s As String = "10,000kg crane,21"
  7. s = Regex.Replace(s, ",(?=.*?,)", "")
  8. System.Console.WriteLine(s)
  9. End Sub
  10. End Class
Success #stdin #stdout 0.08s 18856KB
stdin
stdout
10000kg crane,21