Regex

Discussion in 'Perl' started by Ryan Keeling, Mar 10, 2005.

  1. Ryan Keeling

    Ryan Keeling Guest

    Hi I am new to regular expressions and need some help constructing a
    regex which will match something similar to the following,

    <td class="offer_description">
    <strong>DEER PARK AND GOLF COURSES HOTEL, Howth, County
    Dublin.</strong><br />

    Basically I would like to match the first bit <td
    class="offer_description"> then accept everything between it and
    </strong><br />.

    Any help would be greatly appreciated,

    thanks
    Ryan
    Ryan Keeling, Mar 10, 2005
    #1
    1. Advertising

  2. Ryan Keeling

    Guest

    As you know your beginning and ending text, you can use the following
    pattern to finish the work as I think:
    {<td class="offer_description">(.*?)</strong><br />}{$1};

    hope this can work.
    , Mar 14, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?SmViQnVzaGVsbA==?=

    Is ASP Validator Regex Engine Same As VS2003 Find Regex Engine?

    =?Utf-8?B?SmViQnVzaGVsbA==?=, Oct 22, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    688
    =?Utf-8?B?SmViQnVzaGVsbA==?=
    Oct 22, 2005
  2. Rick Venter

    perl regex to java regex

    Rick Venter, Oct 29, 2003, in forum: Java
    Replies:
    5
    Views:
    1,605
    Ant...
    Nov 6, 2003
  3. Replies:
    2
    Views:
    589
  4. Xah Lee
    Replies:
    1
    Views:
    929
    Ilias Lazaridis
    Sep 22, 2006
  5. Replies:
    3
    Views:
    730
    Reedick, Andrew
    Jul 1, 2008
Loading...

Share This Page