<?php preg_match('#^((http:|https:)?//(www\.)?moscow\.megafon\.ru|/[^/]).*$#sU', 'http://moscow.megafon.ru/internet/tariffs/', $m); var_dump($m);
You have javascript disabled. You will not be able to edit any code.