|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Newbie: substringsHi,
I want to extract in separate strings the substrings separated by spaces in lines like: A B D between 21.2 32.4 S B V > 332.3 ..... etc where each line is a string. Since the various substrings are not of constant length, the substring function is not too useful for me. I think i can do it with left- right-substrings, but is there a method that will extract a string between delimiters? (spaces in my case) TIA Why do you want to extract the letters using substrings when you can use
'Split'? Crouchie1998 BA (HONS) MCP MCSE Look at the String.Split function. It should do the trick for you.
Chris Show quoteHide quote "steve" <st***@here.com> wrote in message news:TpV6e.62155$_N4.1386568@wagner.videotron.net... > Hi, > > I want to extract in separate strings the substrings separated by spaces > in lines like: > > A B D between 21.2 32.4 > S B V > 332.3 > .... etc > > where each line is a string. > Since the various substrings are not of constant length, the substring > function is not too useful for me. > I think i can do it with left- right-substrings, but is there a method > that will extract a string between delimiters? (spaces in my case) > > TIA > "steve" <st***@here.com> schrieb: 'String.Split'/'String.Split'/'Regex.Split'.> I want to extract in separate strings the substrings separated by spaces > in lines like: > > A B D between 21.2 32.4 > S B V > 332.3 -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://classicvb.org/petition/> Herfried,
> Probably> 'String.Split'/'String.Split'/'Regex.Split'. > http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vblr7/html/vafctsplit.asp :-) CorErrata:
> 'String.Split'/'String.Split'/'Regex.Split'. The first item should read 'Strings.Split'.-- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://classicvb.org/petition/>
Translate C# to VB.net?
Splash window XmlTextReader not getting all Elements VB.NET Equiv of... AxWebBrowser1 and code behind redirecting Assigning a Null to Datetime Variable or Object MDIParent property [ANN] April 12, 2005, "Visual Basic 2005 Language Enhancements" chat Timer Event Not Firing in SystemFileWatcher... ComboBox data |
|||||||||||||||||||||||