I have got a string that I need to replace by using wildcards in a VB.Net code. I found out that I may need to use the Regular expressions but I am new to it.
I would like to change the following strings:
John;-4;5John;20;15John;-255;2
where the -4;5 etc are the changing parts of the string into newValue
I used a standard string replace but that does not seem to work:
newString = oldString.Replace(oldString & ";" & "*" & ";" & "*", "newValue")
Your help is much appreciated.
John;-?\d+;-?\d+:p