/jEdit/tags/jedit-4-2-pre3/doc/tips/tip34.html
# · HTML · 22 lines · 15 code · 7 blank · 0 comment · 0 complexity · 0484073f48dcc05caad5e6be3cbccf77 MD5 · raw file
- <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>