-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
* Bill Moseley <moseley at hank.org> [2003-07-31 08:22]:
> Any way to use captured text in the replace filter? For example if I
> wanted to limit repeating chars to three chars:
>
> [% foo | replace('(.)\1{3,}', $1$1$1 ) %]
Unfortunately, no. No one's come up with a decent way to do it. If you
feel ambitious, poke at Template::Stash (around line 71 or so).
(darren)
- --
"Quiet and courteous" is often mistaken for "kind and polite."
-- Andrew Langmead
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
Comment: This message is digitally signed and can be verified for authenticity.
iD8DBQE/KQ46zsinjrVhZaoRAhk9AJ9vkxRG2B67JnDSyfOSx18kkEge9QCdEjXL
daZ4XKaaiEqgr2dTtJhkajI=
=p6y/
-----END PGP SIGNATURE-----
_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates