View Single Post
Old 04-09-2006, 03:42 PM  
BigBen
Confirmed User
 
Join Date: Nov 2004
Location: scv
Posts: 2,299
Quote:
Originally Posted by J.P.
try using this:

/\{\$[^\}]+\}/


BTW:
"greedy regexp" does not have anything to do with multiple matches...

if you would use /\{\$.*\}/ on "hello {$site} and a happy new {$what}"

greedy regexp would match a "{$site} and a happy new {$what}" and the non-greedy one would match a "{$site}" and "{$what}"
That works perfect, thanks.
BigBen is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote