Objective: I am trying to extract everything within the <body> tag. I need to be able to extract <body> or <body bgcolor="black"> or <BODY BGCOLOR="black">.
This is what I have so far in php:
<?php
$string = "<html>" . "<BoDy bgColor=\"\">" . "</body>" . "</html>";
$regexp = '/<body\s?(.*)>/i'...