SyntaxFix
Write A Post
Hire A Developer
Questions
Please try with this
$pattern = "/My name is '\(.*\)' and im fine/";