I have a string object that begins with the text:
"DESCRIPTION (assorted text here) text continued..."
I would like to remove from the string all text from the word "DESCRIPTION" through the end of the parentheses.
I tried
Dim pattern As String = "DESCRIPTION(.*)"
Dim re As New Regex(pattern)
re.Replace(testtxt, ""
where texttxt is the original string and this does not seem to work.
What is the best way to do this?
Thanks!
"DESCRIPTION (assorted text here) text continued..."
I would like to remove from the string all text from the word "DESCRIPTION" through the end of the parentheses.
I tried
Dim pattern As String = "DESCRIPTION(.*)"
Dim re As New Regex(pattern)
re.Replace(testtxt, ""
where texttxt is the original string and this does not seem to work.
What is the best way to do this?
Thanks!