2017-10-05 90 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

相关问题