How to Split Following From This String Concatenation. [Resolved]

Posted by Jayakumars under ASP.NET AJAX on 3/12/2013 | Points: 10 | Views : 1358 | Status : [Member] [MVP] | Replies : 2
hi
I have string like this "Mr Jehovah Jireh Sr 2/28/2013 10:37:25 AM"

here i need output with Split like this

I need output this
=========================
1. Mr Jehovah Jireh Sr
2. 2/28/2013
3. 10:37:25 AM

No need C# Code i need vb.net only

Mark as Answer if its helpful to you


Responses

Posted by: Jayakumars on: 3/13/2013 [Member] [MVP] Bronze | Points: 25

Up
0
Down

Resolved
hi

thanks ur reply but i need split digit and Letter wise
I got this code.

Dim strsp() As String = "Mr Jehovah Jireh Sr 2/28/2013 10:37:25 AM"

For i = 0 To Strlen - 1
If [Char].IsDigit(strSplit(i)) Then
Anumbers = Anumbers + " " + strsp(i)
ElseIf [Char].IsLetter(strsp(i)) Then
Balpha = Balpha + " " + strsp(i)
End If
Next



Mark as Answer if its helpful to you

Jayakumars, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Satyapriyanayak on: 3/13/2013 [Member] [MVP] Silver | Points: 25

Up
0
Down
Dim s As String = "Mr Jehovah Jireh Sr 2/28/2013 10:37:25 AM"
Dim words As String() = s.Split(New Char() {" "c})
MessageBox.Show(words(0) + " " + words(1) + " " + words(2) + " " + words(3))
MessageBox.Show(words(4))
MessageBox.Show(words(5) + " " + words(6))

If this post helps you mark it as answer
Thanks

Jayakumars, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response