Posted on 2008-11-13
Last Modified: 2012-05-05
How can I align line from

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


1.this is a test1
2. this is a test2
3. this is a test3
Question by:VBdotnet2005
    LVL 7

    Accepted Solution

    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


    Author Comment

    I try  

    For Each mystringx As String In s

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


    but, it does not display  

    but this

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

    Featured Post

    Gigs: Get Your Project Delivered by an Expert

    Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

    Join & Write a Comment

    I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
    Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now