fork download
  1. Imports System
  2. Imports System.Text.RegularExpressions
  3.  
  4. Public Class Test
  5. Public Shared Sub Main()
  6. Dim str As String = "{capital?} has a bridge for {people?}"
  7. Dim str1 As String
  8. str1 = Regex.Replace(str, "\{(\w+)\?\}", "$1_DEN")
  9. Console.WriteLine(str1) ' dd
  10. End Sub
  11. End Class
Success #stdin #stdout 0.05s 19920KB
stdin
Standard input is empty
stdout
capital_DEN has a bridge for people_DEN