Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Oct 2008
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    VB.NET - Splitting up a text file & Pattern Matching

    I have a text file that I am reading into VB.NET, to show up in a textbox.

    The text file contains several "paragraphs" of information (blocks of 24 lines). I need to be able to split the contents into these 24 lines so I could for example pick a number, 5, and show the 5th block of information in the text file.

    This would then help with my next problem - pattern matching/regular expressions. If I can split the contents up, I then need to be able to create filters to show various blocks of info. e.g. filter out all the odd blocks, or any block containing a certain word.

    Right now my project consists of choosing a file, and then "scanning" it to show the entire contents within the textbox. I would like to be able to set the filters before the "scanning".

    Any pointers, hints, tips etc welcome

    Thanks in advance!
    Last edited by mr_pablo; 10-31-2008 at 07:48 PM.

  • #2
    New to the CF scene
    Join Date
    Oct 2008
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    minor bump - 23 views as I write this, and no takers?

  • #3
    New to the CF scene
    Join Date
    Oct 2008
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    bump

    could really use some pointers at least, i have yet to find any good info on applying regex functions to a text file before displaying it in a textbox.

  • #4
    New Coder
    Join Date
    Feb 2008
    Posts
    55
    Thanks
    1
    Thanked 0 Times in 0 Posts
    what is your problem?more specific please and can you post the script also?so we can see the enquiry of your problem?


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •