Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

704.Regular expression replace -- How to remove the sequence number before each line of text file?

User: editor -- 2011-01-24          << 703  705 >>
Hits: 484
Type: Regular expression replace   
Search all Regular expression replace examples
Description:
How to remove the sequence number before each line of text file?
Input Sample:
1. content of line1
2. content of line2
3. content of line3
4. ...
...
Output Sample:
content of line1
content of line2
content of line3
...
...
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 window
* set 'replace unit' to 'Chars'
* set 'replace scope' to 'Line'
* in 'search for pattern', enter:

3. click 'replace', done!
4. for multiple files, click 'Batch...' button in step 3, and drag multiple files to 'Batch Runner' window, and click 'Batch Replace'.

Note: regular expression "^\s*\d+\.\s*" means numbers followed by a period, \s* means any number of spaces

Screenshot 1:  Replace_Window


Similar Examples:
How to remove all letters before "=" in each line of text file? (78%)
How to add sequence number for each non-blank line of a text file? (75%)
How to remove the first 10 characters of each line in text file? (70%)
How to add line_no before each line of a text file? (68%)
How to delete duplicate numbers in every line in text file? (67%)
How to remove leading spaces and tabs in each line in multiple text files? (66%)
How to batch remove/delete one blank line between each two lines in text file? (66%)
How can I reverse the sequence of all words in a text file? (65%)

Check Demo of Regular expression replace
Keywords:
before each line  period  sequence number  spaces  before  space  sequence  seq  scope  replace scope  regular expression sequence number  regular expression to remove line numbers  regular expression remove sequence  number followed by period regular expression  remove sequence numbers  text file remove multiple spaces  replace a sequence of numbers in text file  expression regular remove number