I’m trying to select text in a string using a regular expresions but it i’m pulling my hear out. It’s crazy.
I just want ‘all’ text whithin (” “)
$text = 'jow this should match ("text") and not (this) also not "this"';
preg_match($pattern, $text, $match);
echo $match[1];
What $pattern should i be using?
Please help i’m going crazy here…
Thx,
1 Answer