/jEdit/tags/jedit-4-0-pre5/doc/tips/tip34.html
HTML | 19 lines | 14 code | 5 blank | 0 comment | 0 complexity | 118399370e8badf525f384c3fb32160c MD5 | raw file
Possible License(s): BSD-3-Clause, AGPL-1.0, Apache-2.0, LGPL-2.0, LGPL-3.0, GPL-2.0, CC-BY-SA-3.0, LGPL-2.1, GPL-3.0, MPL-2.0-no-copyleft-exception, IPL-1.0
- <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>