On 17-Jun-2003 Ron Dyck wrote:
> 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:
> 

Use the m (multiline) modifier:

preg_match("/<!--start_tag-->(.*)<!--end_tag-->/m", ...

Regards,
-- 
Don Read                                       [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to 
   steal the neighbor's newspaper, that's the time to do it.
                           

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to