• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 123
  • Last Modified:

Readline

How can I align line from

1.this is a test1  2. this is a test2  3. this is a test3

to

1.this is a test1
2. this is a test2
3. this is a test3
0
VBdotnet2005
Asked:
VBdotnet2005
1 Solution
 
aherpsCommented:
Try something like the code below:


s(0) = 1.this is a test1
s(1) = 2. this is a test2
s(2) = 3. this is a test3
Dim s As String() = Regex.Split(inputLine, "[0-9]\.")

Open in new window

0
 
VBdotnet2005Author Commented:
I try  

For Each mystringx As String In s

                    Me.lblmylabel.Text &= mystringx & "<br>"

Next

but, it does not display  

but this


this is a test1
this is a test2
this is a test3
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now