2017-10-05 10 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" 国境= "1" \>。* \ <\/table\>?)。*' \ 1と...それで少し遊んでもらうましたちょうどあなたが探しているもの – theGleep

答えて

0

あなたはこのタグ間<table>のすべてocurrences、<\table>と内容を取得したい場合。置換フィールドで

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

そして、このトークン:
あなたは検索パターンにこの正規表現を使用することができます

\1 

はオプションのためtrueをチェックすることを忘れないでください:

Regular Expressions 

. Matches new line 

この画像のように

Notepad++ Screenshot

関連する問題