Activity Stream
48,167 MEMBERS
61084 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 3 of 3
  1.     
    #1
    Member

    Default Need help with Regex - VB.NET

    Hey guys I'm coding an app in vb.net to grab the post info off a page and display it. But I can't seem to make a regex that actually grabs the info. I need to grab the info between the two images in here:

    Code: 
    <img src="http://www.limepic.com/img/thinformation.gif" border="0" alt="" /><br />
    <br />
    <br />
    The Ultimate Guide to Cloud Computing - 2011 <br />
    <br />
    English | PDF | 100 pages | 30.4MB <br />
    <br />
    Cloud computing is a phrase that has quickly entered the business mainstream, with many commentators believing that it will shape technology over the coming decade. But what does it mean? Why is it important? And why will businesses never be the same again? The Ultimate Guide to Cloud Computing answers these and many other questions as it explains the rationale behind the biggest upheaval to the IT world since the Internet.<br />
    <br />
    <br />
    <img src="http://www.limepic.com/img/thdownload.gif" border="0" alt="" /><br />
    Some patterns I've tried are:
    • <br />\n?\.*\n?<br />
    • alt="" />(.*?)<img src=""http://www.limepic.com/img/thd


    I have tried a few others as well, but all failed to grab anything. btw here's the page I'm using - http://ebooks4u.org/showthread.php/1...Computing-2011

    If anyone could help me make a pattern I would be very great-full.
    Connor Reviewed by Connor on . Need help with Regex - VB.NET Hey guys I'm coding an app in vb.net to grab the post info off a page and display it. But I can't seem to make a regex that actually grabs the info. I need to grab the info between the two images in here: <img src="http://www.limepic.com/img/thinformation.gif" border="0" alt="" /><br /> <br /> <br /> The Ultimate Guide to Cloud Computing - 2011 <br /> <br /> English | PDF | 100 pages | 30.4MB <br /> <br /> Cloud computing is a phrase that has quickly entered the business mainstream, Rating: 5

  2.   Sponsored Links

  3.     
    #2
    You can call me G
    I'd suggest that you try looking for a HTML parser.. RegEx for large chunks of html isn't reliable at all and small changes break it.

    Regards,
    Gaurav



    My Langotiya Yaars (Chaddi buddies): JmZ, humour, Chutad, Esotorisk, l0calhost, Daniel, Mind Freak?, TLK, Amz

  4.     
    #3
    Member
    Should I try using the HTML Agility Pack then? I'm new to developing and need some suggestions.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Regex in shell
    By mahjong in forum Server Management
    Replies: 0
    Last Post: 8th Apr 2012, 08:58 AM
  2. Need help with RegEx
    By dima1236 in forum Web Development Area
    Replies: 7
    Last Post: 14th Jan 2012, 05:53 PM
  3. php help regex!
    By ?RaJ? in forum Technical Help Desk Support
    Replies: 7
    Last Post: 26th Apr 2011, 09:22 PM
  4. Help with Regex
    By ChaoscripT in forum Web Development Area
    Replies: 2
    Last Post: 15th Dec 2010, 09:26 PM
  5. need help with some regex
    By t3od0r in forum Web Development Area
    Replies: 1
    Last Post: 13th Aug 2010, 04:23 PM

Tags for this Thread

BE SOCIAL