<?php $host = 'www.ms.av'; $https = 'on'; preg_match('^(?:(www)|www\.([^.]+))(\.[^.]+\.[^.]+)\z', $host, $matches); var_dump($matches);
You have javascript disabled. You will not be able to edit any code.