remove everything after a certain character vb
22:56 14 Mar 2017

I'm new to programming. I'm learning about visual basic at my school.

Is it possible to remove everything after a certain character in vb basic?

What I wanted to do is: remove everything in bold letter

Text

background-image: url("url =** example.com %2A%7Ehmac%3D0da31302030394a84ae567e54f5cce15b3e18133&_nc_hash=AQCFmBtOnL2EgdP6**

In my program, I let my user input a line of text in a text box, the line will be similar to Text. And I can't think of how to remove the unnecessary part after a certain character.

Here's my code, I have 2 textboxes, user will put the text in textbox1 and the result will be in textbox2.

 Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
   "i need code here"
End Sub
vb.net visual-studio