Hey, 

How would I do this in template toolkit. I am using a
Macro because I need to run this in many places...

basically I want to find a word within a string and
then add a apostrophe on it. But the word sometimes is
capitalized, sometimes not etc...this is what I have,
but I don't know what to do once I find a
match...ala..

MACRO changword(t)
t.replace('(?ig)catdog','');

I want to end up with .. 

cat,dog

But sometimes it could be Cat,Dog





                
__________________________________ 
Yahoo! FareChase: Search multiple travel sites in one click.
http://farechase.yahoo.com

_______________________________________________
templates mailing list
[email protected]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to