<?php $search = 'FirstName LastName'; preg_match('/^([a-z]*)\s*([a-z]*)$/i', trim($search), $matches); var_dump($matches);
You have javascript disabled. You will not be able to edit any code.