Matching text between braces in PHP
In direct follow-up to this previous question , how can I pull the text (and the braces if possible) out as a match using PHP? Specifically, I am writing a Wordpress plugin and am looking to reformat all text between two curly braces (a quasi wiki-marking). I've followed the steps outlined in another previous question I asked, and have the matching part working - it's the match I need help with. Example: This is some {{text}} and I want to reformat the items inside the curly braces Desired output: This is some *Text fancified* and I want to reformat the items inside the curly braces What I