REGEX Question

From: Date: Tue, 17 Jun 2003 14:08:13 +0000
Subject: REGEX Question
Groups: php.general 
Request: Send a blank email to php-general+get-151831@lists.php.net to get a copy of this message
I need to match text between two html comment tags. I'm using: preg_match("/<!--start_tag-->(.*)<!--end_tag-->/", $data, $Match) Which work fine until I have carriage returns. The following doesn't match: <!--start_tag--> Nullam auctor pellentesque sem. Aenean semper. Aenean magna justo, rutrum et, consequat a, vehicula non, arcu. Mauris cursus vulputate pede. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Lorem ipsum dolor sit amet, consectetuer adipiscing elit.<!--end_tag--> Appreciate you help. ============================== Ron Dyck Webbtech.net ==============================

« previous php.general (#151831) next »