Not using a RE like you asked, but you can try something like:
HTH,use strict; use Tie::File; my $file = shift; tie my @array, 'Tie::File', $file or die "can't open $file...\n"; unshift @array => '<pre>'; push @array => '</pre>'; untie @array;
In reply to Re: Adding <pre> at beginning </pre> at file end
by mickeyn
in thread Adding <pre> at beginning </pre> at file end
by vinoth.ree
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |