2017-10-05 87 views
1

我需要保存表<table class="tftable" border="1"> information </table>。刪除前後的其他信息。如何刪除某個設計記事本++之前的所有字符?

如何實施這個更好。這種類型大約有90,000頁。他們都有相同的結構。表中的信息是不同的。

<h1>jnouaoh098hwgv 03g030h </h1> 
<div class="list-posts"> 
    <div class="post-item"> 
    <div class="text"> 
     <p>iuah8n987hauuih uouahou paniuaugpiubrebg940wbunv9wh0uvnw95n 8h 8hgu 0hu8gh</p> 
     <h2>594w81grghiwuehuwn</h2> 

     <table class="tftable" border="1"> 
     <tr> 
      <th>aiurh8n 7a8 </th> 
      <th>aihnguaw </th> 
     </tr> 
     <tr> 
      <td>uuhqncm998m4</td> 
      <td>от 11 000 wg.</td> 
     </tr> 
     <tr> 
      <td>shshrs</td> 
      <td>оsuhrguhousehrg</td> 
     </tr> 
      <td>sre e</td> 
      <td>от 500 fs.</td> 
     </tr> 
     <tr> 
      <td>rseh sreh</td> 
      <td>от 400 ewf.</td> 
     </tr> 
     <tr> 
      <td>ge ge</td> 
      <td>от 350 gw.</td> 
     </tr> 
     <tr> 
      <td>eg</td> 
      <td>ge gew</td> 
     </tr> 
     </table> 

<div class="footer"> 
    <div class="container"> 
    <div class="row"> 
     <div class="col-sm-4 text-left"> 
     <h5>aweaweh hahrhrhhrrrrrrrrrrarh 
      <ul> 
      <li><i class="fa fa-phone"></i> 598229929</li> 
      <li><i class="fa fa-envelope"></i> 5191iuhyg7g</li> 
      <li><i class="fa fa-map-marker"></i> 56cn847n9qc849</li> 
      </ul> 
+0

更換'。*(\ <表類= 「tftable」 BORDER = 「1」 \>。* \ <\/table\>?)。*'用\ 1 ...玩它一點點得到得到只是你在找什麼 – theGleep

回答

0

如果你想獲得的所有<table> ocurrences,<\table>內容及標記之間
您可以在搜索模式使用正則表達式

.*?(<table(.*)<\/table>).* 

而這個令牌替換字段:

\1 

不要忘記檢查true的選項:

Regular Expressions 

. Matches new line 

喜歡這個圖片:

Notepad++ Screenshot

相關問題