regex - How to identify files which have empty new lines at the bottom of the file -



regex - How to identify files which have empty new lines at the bottom of the file -

i have several files either have 2 or 3 or more empty lines @ bottom of of file. how find such files , remove empty lines in automated fashion.

you can utilize regex dotall option selected

^(\r?\n){2,}$

and replace nothing

regex eclipse

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -