regex - php regular expression help -
i have string. there need 1 word. word between space , point. example
' 'word.
if find many same pattern words, need first word.
as far understand, try :
/\s(\w+)\./ preg_match('/\s(\w+)\./', 'abc. def. ghi.', $m); echo $m[1],"\n";
output:
def
Comments
Post a Comment