Parsing Text

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?QXJuZSBCZXJ1bGRzZW4=?=

    Parsing Text

    I have a standard text doc where I need to read the first several lines of
    the document...by both row and word. There are so many new tools available
    in Vb.net...i'm not sure of the best approach. For example...the documents
    are usually details about company info. The first line is usually the
    company name, second and third lines address, then phone etc. When loading
    the doc...it's a big time saver to auto load this info. I used to use the
    old Awk control to do this...but I'm not sure what's the best approach in
    vb.net 2005

    Thanks
  • Cor Ligthert [MVP]

    #2
    Re: Parsing Text

    Arnie,

    Your problem is in my opinion exactly where Regex is made for.

    RegexLib


    Expresso

    I hope this helps a little bit?


    Cor

    "Arne Beruldsen" <ArneBeruldsen@ discussions.mic rosoft.comschre ef in
    bericht news:9947A355-6BAE-430C-BBF6-969BBC9EF7A5@mi crosoft.com...
    >I have a standard text doc where I need to read the first several lines of
    the document...by both row and word. There are so many new tools
    available
    in Vb.net...i'm not sure of the best approach. For example...the
    documents
    are usually details about company info. The first line is usually the
    company name, second and third lines address, then phone etc. When
    loading
    the doc...it's a big time saver to auto load this info. I used to use the
    old Awk control to do this...but I'm not sure what's the best approach in
    vb.net 2005
    >
    Thanks

    Comment

    Working...