Meanwhile, a quick bit of help.
I\'m trying to parse out some custom tagging for custom styles in a \'zine engine.
What I need to do is replace:
&&ifGuest&&
Guest stuff
&&else&&
Member Stuff
&&/ifGuest&&
with \"Guest Stuff\" if you\'re not logged in and \"Member Stuff\" if you are.
Now, I\'ve got it partially working, IE: if you\'ve got only one &&ifGuest&& .. &&else&& .. &&/ifGuest&& in it\'ll work fine, but if you\'ve got more than one, it parses from the first one to the last one.
This is unacceptable.
The regexp I\'m using now is:
\"&&ifGuest&&.*&&/ifGuest&&\"
with some additional code underneath to handle &&else&&.
Now, I read that . is greedy, but the \'ungreedier\', .? returns an BAD_RPT error.
If anyone can help with this, it\'d be much appreciated.