Jump to content

[SOLVED] REGEX Request: Find string between {$ and }


stuartmarsh

Recommended Posts

Hi all,

Could someone please supply me with a regex that I can use with preg_match_all to find all strings between {$ and }?

Example:

Test String: Some {$example} text

Match: example

I want to use this in a templating engine so I can replace all matches with the appropriate variable.

 

Cheers

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.