<?php $v = "/home/sol/test/"; var_dump(preg_match('/^\/([a-zA-Z0-9_-]+\.?\/?)+$/',$v));
You have javascript disabled. You will not be able to edit any code.