EmEditor (text editor) Forum Index Questions and Answers about Macros
delete all lines that match any of the regexes that are in a txt file | Register To Post |
| Flat | Previous Topic | Next Topic |
| Poster | Thread |
|---|---|
| Stefan | Posted on: 5/16/2012 3:49 am |
Home away from home ![]() ![]() Joined: 7/14/2008 From: Germany, EU Posts: 264 |
Re: delete all lines that match any of the regexes that are in a txt file Having e.g. "c:\temp\numbers.txt" with one number at each line. c:\temp\numbers.txt: Quote: 123 Use an code like this to read this file into an array. Then use a FOR loop to process each array indices (0 till highest index) and inside the FOR loop use the current index to do what you want. For more about Javascript FileSystemObject and text files read e.g.: http://www.ezineasp.net/post/Javascript-FSO-OpenTextFile-Method.aspx |
| Flat | Previous Topic | Next Topic |
| Subject | Poster | Date |
|---|---|---|
| |
user | 5/11/2012 12:39 am |
| |
user | 5/14/2012 1:43 am |
| |
user | 5/15/2012 12:43 am |
| |
Stefan | 5/15/2012 9:16 am |
| |
user | 5/16/2012 12:15 am |
| » |
Stefan | 5/16/2012 3:49 am |
| |
user | 5/16/2012 5:41 am |
| Register To Post | |


