[pmwiki-users] New recipe: Grep
Eemeli Aro
eemeli at gmail.com
Mon Jun 14 09:54:16 CDT 2010
Somewhat accidentally, I ended up writing a wrapper for (:include:)
that takes the text to include and does a regular expression search &
replace on it.
All I really wanted to do was highlight future dates in a list, and
somehow this turned out to be the easiest way to do it.
The recipe does prevent you from running arbitrary code using
PREG_REPLACE_EVAL, but otherwise it does assume that the regexp you
give it is valid.
http://pmwiki.org/wiki/Cookbook/Grep
eemeli
More information about the pmwiki-users
mailing list