Emacs regex search for lines with less then 20 characters -


so if have txt file variable line length, how search emacs regex lines fewer of number (let 20) of characters.

this should job matches line between 0 , 20 tokens on it

^[^\n]{0,20}$

^ start of line (or string)

[^\n] not new line

{0,20} previous between 0 , 20 times

$ end of line (or string)


Comments

Popular posts from this blog

c# - Farseer ContactListener is not working -

Automatically create pages in phpfox -

Socket.connect doesn't throw exception in Android -