It seems like everytime I do a regular expression that it's a new case and I
realize how much I don't know about them.
$rawPage contains the header and html code collected from an HTTP request.
I need to split this variable into two variables.
$header will contain all the information BEFORE <html>
$page will contain all the information including and following <html>
The white spaces and new lines should all stay intact.
I would like it to be in this type of format. I can't figure out the part
between brackets:
my $header = $rawPage =~ s|(<html>[through the end of the string contained
in $rawPage variable])||i;
my $page = $1;
Thanks for your help!
realize how much I don't know about them.
$rawPage contains the header and html code collected from an HTTP request.
I need to split this variable into two variables.
$header will contain all the information BEFORE <html>
$page will contain all the information including and following <html>
The white spaces and new lines should all stay intact.
I would like it to be in this type of format. I can't figure out the part
between brackets:
my $header = $rawPage =~ s|(<html>[through the end of the string contained
in $rawPage variable])||i;
my $page = $1;
Thanks for your help!