获取特定字符之间的文本

use*_*140 1 regex notepad++

我有一些代码如下.

<table class="formulaTablePopular">
    <tr>
        <td class="forma">
            <input type="hidden" value="0" id="F01"/>
            <div class="formulaOk" id="F01Div"
                 onclick="toggleFormulu(this, 'F01');"
                 onmouseover="toggleFormuluOver(this);"
                 onmouseout="toggleFormuluOut(this);">
            </div>
        </td>
        <td class="slika">
            $$ a^3 + b^3 = (a+b)\left(a^2 - ab + b^2\right) $$
        </td>
    </tr>    
</table>

<table class="formulaTablePopular">
    <tr>
        <td class="forma">
            <input type="hidden" value="0" id="F02"/>
            <div class="formulaOk" id="F02Div"
                 onclick="toggleFormulu(this, 'F02');"
                 onmouseover="toggleFormuluOver(this);"
                 onmouseout="toggleFormuluOut(this);">
            </div>
        </td>
        <td class="slika">
            $$ a^3 - b^3 = (a-b)\left(a^2 + ab + b^2\right) $$
        </td>
    </tr>    
</table>

<table class="formulaTablePopular">
    <tr>
        <td class="forma">
            <input type="hidden" value="0" id="F03"/>
            <div class="formulaOk" id="F03Div"
                 onclick="toggleFormulu(this, 'F03');"
                 onmouseover="toggleFormuluOver(this);"
                 onmouseout="toggleFormuluOut(this);">
            </div>
        </td>
        <td class="slika">
            $$ a^2 - b^2 = (a-b)(a+b) $$
        </td>
    </tr>    
</table>
Run Code Online (Sandbox Code Playgroud)

我怎么能在$$角色之间获取所有文字?
我需要删除除这些代码之外的所有文本

$$ a^3 + b^3 = (a+b)\left(a^2 - ab + b^2\right) $$
$$ a^3 - b^3 = (a-b)\left(a^2 + ab + b^2\right) $$
$$ a^2 - b^2 = (a-b)(a+b) $$
Run Code Online (Sandbox Code Playgroud)

可以在记事本++中这样做吗?

Ama*_*ali 5

找什么:

^.*$(?<!\$\$)
Run Code Online (Sandbox Code Playgroud)

并且没有任何替代.确保您已取消选中" .匹配换行符 "选项.

说明:

^        # assert position at the beginning of the line
.*       # matches as much text (except newlines) as possible
$        # assert position at the end of the line
(?<!     # a negative lookbehind: looks behind to see if there is '$$', 
         # and if not, causes the pattern to fail
  \$\$   # match '$$' literally
)        # end of lookbehind
Run Code Online (Sandbox Code Playgroud)