Hello

Two things:
First wouldn't it be faster to use strpos and substr if you simply have to 
find the literate <!-- start_tag --> and <!-- end_tag -->.
Second: If you use your regex and you have something like
"<!-- start_tag --> This is some text to grasp<!-- end_tag --> this is 
text I don't want <!-- start_tag --> This is some other text I want<!-- 
end_tag -->"
The result would be " This is some text to grasp<!-- end_tag --> this is 
text I don't want <!-- start_tag --> This is some other text I want". 
You should use the " *+" quantifier in order to only grab the content " 
This is some text to grasp". 

Regards
Stefan Langer

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

Reply via email to