/jEdit/tags/jedit-3-2-2/org/gjt/sp/jedit/tips/tip34.html
# · HTML · 19 lines · 14 code · 5 blank · 0 comment · 0 complexity · 118399370e8badf525f384c3fb32160c MD5 · raw file
- <html><body>
- <p>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:</p>
- <p>
- <code><(.+?)></code>
- </p>
- <p>And entering the following in the <b>Return value of a BeanShell
- snippet</b> text field:</p>
- <p>
- <code>"<" + _1.toLowerCase() + ">"</code>
- </p>
- </body></html>