[Zope] Using regexes in DTML expressions

Ben Glazer glazer@scicomp.com
Tue, 9 Nov 1999 11:07:13 -0600


I'd like to be able to use a regex from the Python re module in a <dtml-if>
tag expression, e.g.

	<dtml-if "_.re.search('(([Ps|Sc|S|C][i|y])|Sigh)Comp?', company_name)">
		Pickled pink.
	</dtml-if>

What is the easiest way to do something like this?


Thanks,
Ben