Jump to content

some1 who knows regex + eval pls help!!!


jgp4

Recommended Posts

I've been going thru forum after forum looking for an answer to this, but can find nothing, so I hope someone here can help.

Say I have a string, and inside it is the text ::include(/includes/snippets/snippet.php)::

what i'd like to do is find that text, extract the text from between the ::'s and eval() it, then do a preg_replace to insert the code generated back in - can someone help, I have no idea how to do regex's.

Thanks.
Link to comment
https://forums.phpfreaks.com/topic/25086-some1-who-knows-regex-eval-pls-help/
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.