Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

1223.Advanced search and replace -- How to remove paragraphs in which the full-wide chars are duplicated with previous?

User: pik -- 2014-07-31          << 1222  1224 >>
Hits: 3256
Type: Advanced search and replace   
Search all Advanced search and replace examples
Description:
remove duplicate content (which is in chinese ), 
but the format like carriage return, etc, need to remain, 
don't remove any duplicate blank line, don't remove any duplicate line breaks or  
carriage returns ,ONLY remove duplicate characters which is in chinese language ,thanks 
Input Sample:
[b][b]Œ§×x£º[/b][/b] 
 
[color=#548DD4][b]ß@ÊÇһƪ±»‰m·âµÄÐżþ£¬Ôø½›¸Ä׃ÁËÉÏǧÈfµÄÈËÃüß\ºÍÉú‘B 
£¡ÄãµÄʘIºÍÈËÉúºÍÄãËùÓеĠî‘BŒ¢•þ³ö¬FħÐg°ãÞD׃??[/color][/b] 
 
 
 
[color=#E36C09]¡¡¡¡ 
µÚ¶þ¡¢¾Ü½^Ò»·ÝÕT»ó²»ÒªÍϵ½Ã÷Ì죬·ñ„tËü•þÔì³ÉÄãµÄ‚ûº¦¡£[/color] 
 
[color=#E36C09]¡¡¡¡ 
µÚÈý¡¢×¥×¡Ò»´Î™C•þ²»ÒªÍϵ½Ã÷Ì죬·ñ„tʧȥÁ˾Ͳ»•þÔÙí¡£[/color] 
 
[color=#E36C0dsf9]¡¡¡¡ 
µÚ¶þ¡¢¾Ü½^Ò»·ÝÕT»ó²»ÒªÍϵ½Ã÷Ì죬·ñ„tËü•þÔì³ÉÄãµÄ‚ûº¦¡£[/color] 
Output Sample:
[b][b]Œ§×x£º[/b][/b] 
 
[color=#548DD4][b]ß@ÊÇһƪ±»‰m·âµÄÐżþ£¬Ôø½›¸Ä׃ÁËÉÏǧÈfµÄÈËÃüß\ºÍÉú‘B 
£¡ÄãµÄʘIºÍÈËÉúºÍÄãËùÓеĠî‘BŒ¢•þ³ö¬FħÐg°ãÞD׃??[/color][/b] 
 
 
[color=#E36C09]¡¡¡¡ 
µÚ¶þ¡¢¾Ü½^Ò»·ÝÕT»ó²»ÒªÍϵ½Ã÷Ì죬·ñ„tËü•þÔì³ÉÄãµÄ‚ûº¦¡£[/color] 
 
[color=#E36C09]¡¡¡¡ 
µÚÈý¡¢×¥×¡Ò»´Î™C•þ²»ÒªÍϵ½Ã÷Ì죬·ñ„tʧȥÁ˾Ͳ»•þÔÙí¡£[/color] 
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
1. ctrl-o open text file 
2. ctrl-h open 'replace' dialogue 
* set 'replace unit' to 'Paragraph' 
* set 'if' to: 
 
* click 'advanced' tab, set 'run following at the beginning of replace' to: 
 
3. click 'replace', done.

Screenshot 1:  Replace_Window


Screenshot 2:  Replace_Advanced_Window


Similar Examples:
How to force word wrap with 24 half width or 12 full width chars or mixed per line? (55%)
How to remove partially duplicated lines in a text file? (53%)
How to replace all half-width characters to full-width characters? (52%)
How to reverse a text file by characters? (51%)
How to remove the xml tag and some duplicated tags of combined xml files? (50%)
How to remove all lines that have duplicate contents in CSV files? (50%)
How to remove (2) and add (1) at the same location in previous line? (49%)
How to remove consecutive duplicate words in multiple files? (49%)

Check Demo of Advanced search and replace
Keywords:
chinese  language  remove paragraphs  xff  x01  remove paragraph  paragraphs  line breaks  chin  previous  remove returns  chinese characters  replace carriage return  returns line  remove line return  remove return  return tab  remove breaks