I want to use regular expressions in PHP to check if a text has at least two paragraphs, the first beginning with "In fact" and another beginning with "I suggest."
For example, I tested this:
$text = "In fact Paris is more beautiful than Berlin.
I suggest we go to Paris this summer."
$value = preg_match ( "/ (^ In fact (.)) (I suggest). * /", $text);
echo $value;
I get $value = 0;
I get $value = 0;
I do not know why, please help.