in reply to Re^2: Need a regex to replace incomplete html entities
in thread Need a regex to replace incomplete html entities
The easy solution is to use a negative look-ahead, as already suggested in other posts, but I doubt that sed supports look-ahead assertions (it may depend which version).
Besides, even for a 200 MB file, this should not be a problem in Perl. Last time I compared the performance of Perl and sed, I did not find a really significant performance difference between them, but, again, this may depend on the implementation of the sed version you're using.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Need a regex to replace incomplete html entities
by Chris Daniel (Novice) on Nov 20, 2016 at 14:45 UTC |