Jump to content

[SOLVED] Real Quick Question.


iShaun

Recommended Posts

Ok, i have a preg_match_all function i need help with:

 

heres the situation. I have some things that look like this { NAME } and some that look like this { $var }. Heres the PREG:

preg_match_all('/\{\s*([^\}\s]*)\s*\}/',$this->act_structure,$matches);

 

All i want it to do is find the { NAME } ones, not the { $var } ones. Right now its finding both. Help?

 

-iShaun

 

 

Link to comment
https://forums.phpfreaks.com/topic/122813-solved-real-quick-question/
Share on other sites

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.