<?php $url = 'ssh://hg@bitbucket.org/fooman/fm0016_mdn'; var_dump(preg_match('#(?ssh)://(?:[^@]@)?bitbucket.org#i', $url, $matches), $matches);
You have javascript disabled. You will not be able to edit any code.