<?php $reg = 'twitter.com/(\w+)'; $web = 'http://twitter.com/dcavuotti'; $arrMatches = array(); if (preg_match($reg,$web, $arrMatches)){ var_dump($arrMatches); }
You have javascript disabled. You will not be able to edit any code.