- Milleruse strict; my $data = do {local $/; <DATA>}; $data =~ s{(?<=\?\>)(.*?)(?=\<\?)}{printf('$1');}sg; print $data; __DATA__ <html> blah <?php xxx ?> blah <?=xxx?> blah <?php yyy blah ?> <body> </html>
In reply to Re: multi line pattern match
by wind
in thread multi line pattern match
by perlmonk99
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |