PageRenderTime 212ms CodeModel.GetById 210ms app.highlight 0ms RepoModel.GetById 1ms app.codeStats 0ms

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