$re = '/^[a]\w+/m';
$str = '
a dance high our spouse
able danger hill out spring
about dark him outside square
above daughter himself over stairs
accident day hint own stairway
acid decide his oxygen stand
across decided history page stars
act decimal hold paint start
add deep hole pair state
admission delivery home pants statement
Africa dentist hope paper stay
after deposit horse paragraph step
again describe hospital parents stick
against desert hot park still
age design hotel part stone
ago desk hours party stood
agree destination house passed stop
aide developed how passengers store
air diary however password storm
alarm dictionary huge past story
all did human pattern stove
almost didn\'t hundred pay straight
alone died husband payment strange
already difference I pedestrians street
also different I\'ll pen strong
although digital ice pencil students
always diner idea people study
am dinner if per subject
ambulance direct important period subtract
America direction in perishable subway
amount directions inches person such';
preg_match_all($re, $str, $matches, PREG_SET_ORDER, 0);
// Print the entire match result
var_dump($matches);
Please keep in mind that these code samples are automatically generated and are not guaranteed to work. If you find any syntax errors, feel free to submit a bug report. For a full regex reference for PHP, please visit: http://php.net/manual/en/ref.pcre.php