|
-
May 25th, 2010, 01:36 AM
#4
Re: Splitting text from numbers.
 Originally Posted by Alsvha
Use Regular Expression to strip the numbers out of the text. If you need the numbers as well, you can just use different groups to capture them.
For example:
Code:
Dim Mystring As String = "1234, this, is, text,5678"
Dim regEx As New Regex("\d+")
Dim Mystring2 As String = regEx.Replace(Mystring, "")
Mystring2 will then contain ", this, is, text" and can be split and trimmed.
Oooh, this one is going to take some thinking about.
I use VB.Net 2008 in all my wash, for those whiter whites.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|