Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

1246.Regular expression replace -- How to replace line that contains no space?

User: Dilip -- 2014-09-08          << 1245  1247 >>
Hits: 1307
Type: Regular expression replace   
Search all Regular expression replace examples
Description:
If the full or whole line in a text file does not contain space replace it with a
<---line removed--->
Input Sample:
Audi Car
Audi
Benz Car
Benz
Output Sample:
Audi Car
<---line removed--->
Benz Car
<---line removed--->
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 'Line'
* set 'search for pattern' to:

* set 'replace with pattern' to:

3. click 'replace', done.

Screenshot 1:  Replace_Window


Similar Examples:
How to extract all lines that contain words in a list? (67%)
How to replace all numbers 93 in every line that contains gas? (67%)
How to extract all lines that has no leading spaces? (66%)
How to delete all lines that contain only a word and a blank? (65%)
How to extract all links that contain imprint from a webpage? (65%)
How to extract all lines that contain words A and B and C? (64%)
How to remove all lines that contains more than one word? (64%)
How to extract lines that contains 'HPWS' or 'HPWP' in a file? (63%)

Check Demo of Regular expression replace
Keywords:
whole  full  contains  space  not contain  regular expression  expression  regular  regula  regular exp  search replace whole line  space line  replace space in text file  replace space in text  replace with space  replace space  search expression  line contain