it's messy and long but I think this will do. btw, this is discussed in the
wikiThe relevant text:
Can also be used with an arbitrary number of arguments. Note that $replace(a,b1,c1,b2,c2) is generally not the same as $replace($replace(a,b1,c1),b2,c2).
Example: $replace(ab,a,b,b,c) → "bc", $replace($replace(ab,a,b),b,c) → "cc"
CODE
$replace($replace($replace($replace($replace($replace($replace($replace($replace($replace($replace($replace($caps2(%title%), A , a ),Dj,DJ), The , the ), At , at ), By , by ), With , with ), And , and ), But , but ), Of , of ), In , in ), Or , or ), To , to )
- golphcart