I'm trying match all words wrapped with { } but not the words with "_loop". I can't see where I'm going wrong with my reg expression.
$content = '<h1>{prim_practice_name}</h1><p>{prim_content}</p><p>Our Locations Are {location_loop}{name} - {state}<br/>{/location_loop}</p>';
$pattern = '/\{(\w*(?!\_loop))\}/';
?<!
. – Evaporate