Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

1289.Regular expression replace -- How to remove space at beginning of the line?

User: Chou -- 2015-03-21          << 1288  1290 >>
Hits: 1235
Type: Regular expression replace   
Search all Regular expression replace examples
Description:
How to remove space at beginning of the lineH
Input Sample:
  YOU AND ME
      HE AND SHE
    SHE AND THEY
Output Sample:
YOU AND ME
HE AND SHE
SHE AND THEY
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 'Chars'
* set 'replace scope' to 'Line'
* set 'search for pattern' to:

4. click 'replace', done.

Screenshot 1:  Replace_Window


Similar Examples:
How to delete all blank/space at the beginning of each line? (72%)
How to move a string from the end of the line to the beginning of the line? (70%)
How to move a string from the beginning of the line to the end of the line? (68%)
How to sort the text file by the date at the beginning of each line? (67%)
How to add different words at the beginning of each line? (64%)
How to add a line number at the beginning of each line? (64%)
How to add a star at the beginning and a hash at the end of line? (63%)
How the remove text from the beginning of each line before a certain string? (62%)

Check Demo of Regular expression replace
Keywords:
remove space  how to remove space  space  replace scope  scope  beginning  regular expression  expression  chars  begin  remove line space  remove text at beginning  space remove  space line  beginning of line  beginning line  replace space  at the beginning