- AuthorPosts
- May 10, 2008 at 2:23 am #5763
prashob12
MemberHello:
I am having a problem while replacing multi-blank line with a single line.
I tried to add this in a macro i.e. replace nn with n, here i need to run the macro multiple times that i dont want to as there are lot of files.
Is it possible to replace multiple blank lines as we do multiple spaces i.e. (s){2,} with 1. in one go.
can i use some “character classes” presesnt in regex.
Also how should I use the character classes.
May 10, 2008 at 4:25 pm #5766Yutaka Emura
KeymasterI wrote the macro for you:
http://www.emeditor.com/modules/newbb/viewtopic.php?topic_id=682&forum=19
May 10, 2008 at 6:34 pm #5767prashob12
Membercan you make this macro run on all the files in certain path where those files are present. please!!!!
May 11, 2008 at 12:40 am #5768Yutaka Emura
Keymasterprashob12 wrote:
can you make this macro run on all the files in certain path where those files are present. please!!!!In that case, you can go to “Replace in Files” on the Search menu, and
Find:
(rn){2,}Replace with:
rnFile Type:
*.txt (or enter file type)In Folder:
File folderCheck “Use Regular Expressions”
Don’t check “Keep Modified Files Open” - AuthorPosts
- You must be logged in to reply to this topic.