PageRenderTime 142ms CodeModel.GetById 100ms app.highlight 1ms RepoModel.GetById 40ms app.codeStats 0ms

/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
 1<html><body>
 2
 3<p>You can replace all occurrences of a specific string (or regular
 4expression) with the return value of a BeanShell script. You can use
 5this, for example, to convert all tags in an HTML file to lower case, by
 6searching for the following regular expression:</p>
 7
 8<p>
 9<code>&lt;(.+?)&gt;</code>
10</p>
11
12<p>And entering the following in the <b>Return value of a BeanShell
13snippet</b> text field:</p>
14
15<p>
16<code>"&lt;" + _1.toLowerCase() + "&gt;"</code>
17</p>
18
19</body></html>