Common data and functions for use in PHP applications.
Generates a regexp for assignment to var in PHP; the quoted value is the second subpattern.
>>> re_var('key').search("$key = 'val';").group(2)
"'val'"
Generates a regexp for the definition of a constant in PHP; the quoted value is the second subpattern.
>>> re_define('FOO').search("define('FOO', 'bar');").group(2)
"'bar'"
Replace WIZARD_TMPDIR and WIZARD_SESSIONNAME with with user-specific values.