Results 1 to 4 of 4

Thread: String parser

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Dec 2005
    Posts
    110

    String parser

    Hello,

    I have a variable string that i call from the internet with the "class changes" from my school.
    The string is like this format:

    Code:
    <p><strong></strong></p>
    <p>L1n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; do5&nbsp; en&nbsp;&nbsp; (lbb) in L40&nbsp; i.p.v. &nbsp;L154<br />
    <br />
    L3hn&nbsp;&nbsp;&nbsp;&nbsp; do7&nbsp; sk&nbsp;&nbsp; (pep) in L123 i.p.v. &nbsp;L15&nbsp;<br />
    L3hp&nbsp;&nbsp;&nbsp;&nbsp; do5&nbsp; sk&nbsp;&nbsp; (dwd) in L144 i.p.v. &nbsp;L40&nbsp;<br />
    <br />
    L4vt&nbsp;&nbsp;&nbsp;&nbsp; do7&nbsp; anw&nbsp; (bol) in L15&nbsp; i.p.v. &nbsp;L123</p>
    How can i "filter" it?
    like this:
    listbox1: listbox2:
    L1n the rest of the data in human-readable(no html)
    L3hn ...
    L3hp ...
    L4vt ...

    And a third listbox the same as listbox2 but without all text between "(" and ")"

  2. #2
    Addicted Member
    Join Date
    Mar 2002
    Location
    Lithuania
    Posts
    165

    Re: String parser

    you can use regular expressions
    P.S. Sorry for my poor English...

  3. #3
    G&G Moderator chemicalNova's Avatar
    Join Date
    Jun 2002
    Location
    Victoria, Australia
    Posts
    4,246

    Re: String parser

    A very long time ago I gave this example to someone on these forums. Backups are great

    chem
    Attached Files Attached Files

    Visual Studio 6, Visual Studio.NET 2005, MASM

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Dec 2005
    Posts
    110

    Re: String parser

    Thanx 4 your help both
    will try it asap, just back from school

Posting Permissions

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



Click Here to Expand Forum to Full Width