- AuthorPosts
- May 10, 2008 at 2:23 am #5763prashob12Member
Hello:
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 EmuraKeymasterI 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 #5767prashob12Membercan 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 EmuraKeymasterprashob12 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.