Re: Parsing between a character and sysmbol
- From: "Scott M." <s-mar@xxxxxxxxxxxxx>
- Date: Thu, 17 Aug 2006 14:50:40 -0400
Dim x As String = "10AF101-25"
Dim y As String() = x.split("-")
Dim z As String
dim i As Integer
For i = 0 To y(0).length
If IsNumeric(y(i)) Then z = y &= y(i)
Next
<gene.ariani@xxxxxxxxx> wrote in message
news:1155840008.317547.254450@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I have a string like the following:
10AF101-25
I would like to extract any numerical number that precedes the "-" and
stops when it encounters any string character like AF
So my result should be 101.
Any help is appreciated it.
.
- Follow-Ups:
- Re: Parsing between a character and sysmbol
- From: GhostInAK
- Re: Parsing between a character and sysmbol
- References:
- Parsing between a character and sysmbol
- From: gene . ariani
- Parsing between a character and sysmbol
- Prev by Date: Document
- Next by Date: Re: Drawing a compass
- Previous by thread: Parsing between a character and sysmbol
- Next by thread: Re: Parsing between a character and sysmbol
- Index(es):
Relevant Pages
|