tags:

views:

29

answers:

2

I have a list of strings in my richtextbox. I need a code to check if there are numbers in the first line, if there is then proceed with the rest of my code, else delete first line.

+2  A: 

Has a number: \d

Has only numbers: ^\d+$

Bimmy
A: 

Replace "asda2323" with your line.

Dim x() As Char = "asda2323".ToCharArray
For Each y As Char In x
  If Char.IsNumber(y) Then
    'Delete my line
  End If
Next
Ben