...

View Full Version : Leading non digits are cut off



sujith
01-19-2007, 09: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

sujith

otaku149
01-19-2007, 01: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"



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum