<?php $str = '/site/admin1'; if(preg_match('#$/site/admin^#i',$str)) echo 'NO'; else echo 'OK'; ?>
$str = '/site/NEadmin"&(*&)*_ ""1';