darren chamberlain wrote:

> * JustSome person <[EMAIL PROTECTED]> [2002-12-07 20:45]:
> > and test to see if "dynamicstring"...has a Z as its
> > last character??? keep in mind that Z can be IN the
> > string, just not the last character.

>   [% IF dynamicstring.search('Z') %]

You missed out the '$' to force it to check the end of line

[% IF dynamicstring.search('Z$') %]
  dynamicstring ends in a 'Z'
[% ELSE %]
  Sorry, no love
[% END %]

Mark.

-- 
  Mark Fowler
  http://www.twoshortplanks.com/          The 2002 Perl Advent Calendar
  [EMAIL PROTECTED]               http://www.perladvent.org/2002/
                             a different perl module featured every day

_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.ourshack.com/mailman/listinfo/templates

Reply via email to