View Full Version : Leading non digits are cut off

01-19-2007, 10:46 AM
I want to cut off all leading Charecters in a string
Ie if a string s=ADX135
I want to get 135 only
Ie all Leading non digits are cut off

How can I dothis
In .NET2


01-19-2007, 02:14 PM
If your string has always the same structure, 3 letters following by 3 digits, you can use the Substring method:

Dim s As String = "ADX135"
s = s.Substring(3)
Response.Write(s) 's="135"