You can replace all occurrences of a specific string (or regular expression) with the return value of a BeanShell script. You can use this, for example, to convert all tags in an HTML file to lower case, by searching for the following regular expression:

<(.+?)>

And entering the following in the Return value of a BeanShell snippet text field:

"<" + _1.toLowerCase() + ">"