/jEdit/tags/jedit-4-2-pre4/doc/tips/tip34.html
HTML | 22 lines | 15 code | 7 blank | 0 comment | 0 complexity | 0484073f48dcc05caad5e6be3cbccf77 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>
- You can replace all occurrences of a specific string or regular
- expression with the return value of a BeanShell script if the
- <b>Return value of a BeanShell
- snippet</b> radio button is selected in the search dialog box.<p>
- 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>
- <code><(.+?)></code>
- <p>
- And entering the following in the replace text field:
- <p>
- <code>"<" + _1.toLowerCase() + ">"</code>
- </body></html>