我正在使用NetBeans,在我的项目中,我有许多纯文本字符串(string1,string2,string3 ...),如下所示。
<div class="xyz" id="abc"><strong>string1</strong></div>
<p>string2</p>
<h1>string3</h1>
我需要像下面那样替换那些字符串。
<div class="xyz" id="abc"><strong><?php echo __('string1'); ?></strong></div>
<p><?php echo __('string2'); ?></p>
<h1><?php echo __('string3'); ?></h1>
我正在手动搜索字符串,因为它包含不同的HTML标记和不同的字符串值。
如何用NetBeans中包裹的代码替换搜索到的特定字符串?