Question : Getting the right regex for matching

Help requested please to find correct regex to match in a pattern. Sample code is below.

I have successfully used the following regex to match pattern for the day's header:-
Pattern = "<p>\s*<strong>([^<]+)</strong>"

I am now trying to use a different regex to capture the entire day's itinerary, including the header and text below. The day ends with the added tag "<endday>". I have tried various, eg this does NOT work:-
Pattern = "<p>\s*<strong>(.+)<endday>"
1:
2:
3:
4:
5:
<p> <strong>Day 1: Belize International - Punta Gorda</strong><br />
	Today clients arrive into Belize international (Goldston Intl.). Then clients will be met and assisted with the connecting domestic flight to Punta Gorda. ><br />
        <br />
Upon arrival at the Lodge at Big Falls, guests will be greeted with a cocktail and <img align="right" alt="Belize City - Boats in the harbour" border="0" height="100" hspace="4" src="http://www.xxxxxx.com/images/belize/210/belizecity-harbour.jpg" vspace="4" width="210" />orientation before dining in the softly lit ambience of the restaurant. Dinner.</p>
<endday><p> <strong>Day 2: etc

Answer : Getting the right regex for matching

Use MULTI modifier when applying regexp to force '.' match '\n' as well.
Random Solutions  
 
programming4us programming4us