|
Posted by julian_m on 07/07/06 18:35
I cant think in any reason why this code fails...
Commented line shuldn't be completely ignored by the parser?
<?php
// ?> whatever
ehco 'bla bla';
?>
In the real case, I'm having problems commenting out regex expressions
such as
$res= preg_replace('#<\s*(p|span|li|ul|ol)\s+.*?>#si', '<\1>',$str);
While this doesn't work:
// $res= preg_replace('#<\s*(p|span|li|ul|ol)\s+.*?>#si', '<\1>',$str);
The following seems to be treated as expected
/*
$res= preg_replace('#<\s*(p|span|li|ul|ol)\s+.*?>#si', '<\1>',$str);
*/
Again, I can't see the reason of that parser's behavior...
regards- julian
Navigation:
[Reply to this message]
|