here is my code :
<html>
titi
<?
print "toto"+"<br>"
?>
<html>
and i want only the lines between the <? and ?> the only regexp thaht i’ve found was :
<?.*\n*?\?>
but it lacks the first <?
so if anyone have any idea it drives me nuts …
Regards and thanks for all people.
Bussiere
You should escape the first
?:This regex would be more robust I think:
(specify the multiline option, so
.will match newlines also)