[Zope] Partial string comparisons
Mike Renfro
renfro@tntech.edu
Wed, 13 Jun 2001 08:58:24 -0500
On Wed, Jun 13, 2001 at 02:39:52PM +0100, Andy Gates wrote:
> This ought to be mindlessly simple: can I test for a string within
> another?
Refer to the DTML Users Guide, Table 4.
As an example, stick this in a method:
<dtml-call "REQUEST.set('mystring','This is a test')">
<dtml-var "_.string.find(mystring,'T')"><br>
<dtml-var "_.string.find(mystring,'q')">
--
Mike Renfro / R&D Engineer, Center for Manufacturing Research,
931 372-3601 / Tennessee Technological University -- renfro@tntech.edu