Hi,

I need regex to ignore strings having < followed by a letter. But everything else is allowed

abce <a

<a

asdfj<aasdfasdfsd

Thanks in advance

Dim r As Regex = New Regex("(<[a-z])+")
Dim s As Boolean = r.Match(test_string).Success

If (s) Then
'ignore
Else
'ok                        
End If
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.