Home > OS >  How to use a regular expression delete continuous multi-line duplicate content?
How to use a regular expression delete continuous multi-line duplicate content?

Time:09-24

In the following test in the text, there are a few lines of repeated many times, what kind of a regular expression can batch delete this several lines of text? Note: cannot be directly from the common problems in "o" began to write, write "the 9th trade para o cup", because it is possible to deal with into the common problems in "o" from the first delete to the last "the 9th trade para o cup", then the full text is deleted, it is best to define the first N N "o FAQ" island "the 9th trade para o cup", that might be able to delete just repeat parts, for regular not too familiar, ask everybody to help me solve, thank you very much! (I use a text editor is Emeditor)

Test text:
Multiple service
The
O common problems
O the sixteenth trade secondary cup
The 15th trade para o cups
The 12th trade para o cups
O the 11th trade secondary cup
O the tenth trade secondary cup
O the 9th trade para cup
Week of 2017 Chinese arbitration activities on 16 September 2017 solstice 22, held in the country, on the afternoon of September 18, 2017, sponsored by the trade ZhongWei and BCH Lawyer "Portuguese arbitration day" activity was successfully held in Beijing, from Portugal, Brazil, Angola, portuguese-speaking countries such as Spain's famous Lawyer, international arbitrators to nearly 50 participants introduced the present situation of the portuguese-speaking countries economic and trade exchanges with China and the portuguese-speaking countries arbitration legal system and the latest development of the arbitration law practice and portuguese-speaking countries, macau lawyers association neto valente, secretary-general Shi Lixin also participated in the event,
O common problems
O the sixteenth trade secondary cup
The 15th trade para o cups
The 12th trade para o cups
O the 11th trade secondary cup
O the tenth trade secondary cup
O the 9th trade para cup
Trade ZhongWei speech Zhao Jianzai, vice President of the court of arbitration activities, zhao jian, deputy director of representative trade ZhongWei thank organizers of the "Portuguese arbitration day" and the support from each speaker to 2017 Chinese arbitration weeks, and thanks to active participation of the attendees, zhao jian, deputy director of pointed out that trade arbitration institution ZhongWei and portuguese-speaking countries, arbitrators and arbitration practitioners maintained good cooperation and exchange relations, the two sides should further in the future to exchange views on international arbitration development actively, is committed to creating conducive to the healthy development of the international arbitration of regional and international environment,
O common problems
O the sixteenth trade secondary cup
The 15th trade para o cups
The 12th trade para o cups
O the 11th trade secondary cup
O the tenth trade secondary cup
O the 9th trade para cup
Activities, from Portugal, Brazil, Angola, portuguese-speaking countries such as Spain international arbitrator, the arbitration industry lawyers over its economic and trade exchanges with China, respectively, in the international commercial arbitration law, national characteristics and prospects for cooperation and the Chinese commercial arbitration are introduced, and the application of third party funding in Portugal, the problem such as the development of the temporary arbitration in portuguese-speaking countries and participants carried on the thorough exchange,
Prior to the meeting, Wang Chengjie activities with you the speaker and the secretary-general neto valente, conducted heated exchanges Shi Lixin secretary-general,
O common problems
O the sixteenth trade secondary cup
The 15th trade para o cups
The 12th trade para o cups
O the 11th trade secondary cup
O the tenth trade secondary cup
O the 9th trade secondary cup

CodePudding user response:

A file to find replacement quicker
  • Related