blunT
blunT

Reputation: 23

Emeditor crashing after a certain regex

I have a 10gb file which I am trying to edit. I've edited a few things in it and it works fine until I need to do find and replace ) with new line \n

When I try to replace it for a few lines it works but when I try to replace the whole file the progress bar fills to 100% but instead of finishing it just stops there and crashes.

I tried splitting the file to 1gb pieces and then edit but same problem persists.

Upvotes: 0

Views: 128

Answers (1)

Yutaka
Yutaka

Reputation: 1806

For very large files, you should use escape sequences rather than regular expressions. Using escape sequences should process replaces much faster than regular expressions.

Upvotes: 0

Related Questions