<?php $fullname = 'Joe Blow'; if (preg_match('/^ (\S+) # firstname/alias \s+ \S+ # surname $/x', $fullname, $matches)) { print $matches[1] . "\n"; }
You have javascript disabled. You will not be able to edit any code.