Luke S. - 13 December 2005 04:54 AM
What has changed in 1.1?
First of all, you can now search for spaces or replace strings with spaces, by using find=“SPACE” or replace=“SPACE”.
Secondly, the plugin now supports multiple replacements, just like the php str_replace function. Example:
{exp:replace find="a|e|i|o|u" replace="X" multiple="yes"}
text you want processed
{/exp:replace}
Result: tXxt yXX wXnt prXcXssXd
Or take this one step further:
{exp:replace find="text|you|want" replace="words|we|have" multiple="yes"}
text you want processed
{/exp:replace}
Result: words we have processed
And to finish things off, if you’re running PHP 5 or higher, then you can use the parameter casesensitive=“no” to ignore case.