How to remove a line in richtextbox1

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
I would like to romove any line that doesnt have "http://" Or "https://" within Richtextbox1.text.

e.g.:


http://warbeats.com/Community/Forums/aft/7575
<span style="text-decoration:underline REMOVE--> Hip+hop+drums+%22post+a+reply%22&hl=en&prmd=imvnsfd&tbm=dsc&tbo=u&sa=X&ei=EYOLTrPCIdC1tgf6uY21Aw&ved=0CCMQmA
http://warbeats.com/tabid/64/aft/7901/Default.aspx
<span style="text-decoration:underline REMOVE-> Hip+hop+drums+%22post+a+reply%22&hl=en&prmd=imvnsfd&tbm=dsc&tbo=u&sa=X&ei=EYOLTrPCIdC1tgf6uY21Aw&ved=0CDAQmAc
http://warbeats.com/tabid/64/aft/5507/Default.aspx
<span style="text-decoration:underline REMOVE--> Hip+hop+drums+%22post+a+reply%22&hl=en&prmd=imvnsfd&tbm=dsc&tbo=u&sa=X&ei=EYOLTrPCIdC1tgf6uY21Aw&ved=0CDwQmAc
http://forums.undergroundhiphop.com/readpost.asp?Forum=Producer&Whichpage=1&QuestionID=849616
<span style="text-decoration:underline REMOVE--> Hip+hop+drums+%22post+a+reply%22&hl=en&prmd=imvnsfd&tbm=dsc&tbo=u&sa=X&ei=EYOLTrPCIdC1tgf6uY21Aw&ved=0CE4QmAcw
http://www.tranceaddict.com/forums/showthread.php?threadid=610039&referrerid=2
<span style="text-decoration:underline REMOVE--> Hip+hop+drums+%22post+a+reply%22&hl=en&prmd=imvnsfd&tbm=dsc&tbo=u&sa=X&ei=EYOLTrPCIdC1tgf6uY21Aw&ved=0CFYQmAcw
http://www.tranceaddict.com/forums/showthread.php?threadid=318313
<span style="text-decoration:underline REMOVE--> Hip+hop+drums+%22post+a+reply%22&hl=en&prmd=imvnsfd&tbm=dsc&tbo=u&sa=X&ei=EYOLTrPCIdC1tgf6uY21Aw&ved=0CF0QmAcw
http://www.rumcommittee.com/news/big-weekend-of-committee-jams
http://www.synthzone.com/ubbs/Forum37/HTML/002484.html
<span style="text-decoration:underline REMOVE--> Hip+hop+drums+%22post+a+reply%22&hl=en&prmd=imvnsfd&tbm=dsc&tbo=u&sa=X&ei=EYOLTrPCIdC1tgf6uY21Aw&ved=0CHIQmAcw
http://www.sonomawireworks.com/forums/viewtopic.php?id=4435
<span style="text-decoration:underline REMOVE--> Hip+hop+drums+%22post+a+reply%22&hl=en&prmd=imvnsfd&tbm=dsc&tbo=u&sa=X&ei=EYOLTrPCIdC1tgf6uY21Aw&ved=0CHoQmAcA
http://chipmusic.org/forums/topic/2790/suggest-me-some-good-drum-machinezz/page/3/
<span style="text-decoration:underline REMOVE--> Hip+hop+drums+%22post+a+reply%22&hl=en&prmd=imvnsfd&tbm=dsc&tbo=u&sa=X&ei=EYOLTrPCIdC1tgf6uY21Aw&ved=0CIMBEJgHM


I need any line above that doesnt have the http:// or https:// to be remove and no empty lines left.

I would appreciate any help with my visual basic 2008 code.

Thanks <hr class="sig Inforequester123 - social.msdn.microsoft.com forums

View the full article
 
Back
Top