I need a way to extract a number (will be up to two-digit) from a string... I will have no problem converting that resulting string to an integer, but just initially getting the number out of the string...
the string may look like any of these:
'blahblahblah1.asp', 'blahblahblah1_submit.asp', 'blahblahblah12.asp' or 'blahblahblah12_submit.asp'
It'd be rather easy to create four checks for the string to go through every time to check absolute positions (and if 'Cint(string)=true' then we have a winner), but there has got to be an easier, more efficient way to get that number out of the string using regular expressions... correct? ...or perhaps I'm on crack.
Any help would be greatly appreciated.
Jeremy
the string may look like any of these:
'blahblahblah1.asp', 'blahblahblah1_submit.asp', 'blahblahblah12.asp' or 'blahblahblah12_submit.asp'
It'd be rather easy to create four checks for the string to go through every time to check absolute positions (and if 'Cint(string)=true' then we have a winner), but there has got to be an easier, more efficient way to get that number out of the string using regular expressions... correct? ...or perhaps I'm on crack.
Any help would be greatly appreciated.
Jeremy