Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Dim A as String = "Example (example1)"
- A = "Example (example2)"
- Imports System.Text.RegularExpressions
- Dim input As String = "Example (example1)"
- Dim replacement As String = "example2"
- Dim expression As New Regex((.*))
- Dim result As String = expression.Replace(input, replacement)
- Dim myString as String = "example2"
- Dim A as String = String.Format("Example ({0})", myString)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement