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

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Socket.connect doesn't throw exception in Android -

SPSS keyboard combination alters encoding -