View Single Post
Old 04-09-2006, 03:03 PM  
BigBen
Confirmed User
 
Join Date: Nov 2004
Location: scv
Posts: 2,299
Anybody know regex?

What's a regular expression that will find all occurences of anything between the following characters: {$ and }

So if I have some text: "The site name is {$site}", I need to match 'site'. It has to be greedy as there may be multiple matches.

Any ideas? Thanks.
BigBen is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote