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

SPSS keyboard combination alters encoding -

Socket.connect doesn't throw exception in Android -

iphone - How do I keep MDScrollView from truncating my row headers and making my cells look bad? -