I am trying to build a regex that will match the pattern as such:
word1, word2, word3
So basically I want " , " to appear twice and have words between them. So far I have come up with:
$general_content_check = preg_match("/^.*, .*$/", $general_content);
But this number only matches " , " several times per line.
Can anyone help me with this?
source share