Skip to main content

in emacsIn Emacs, I sometimes use this regexregex:

^J\([^^J]\) -> \1

meansMeans: replace every newline that is followed by something which is NOT a newline with only the thing, that followed the newline That way I get rid of all newlines within a paragraph but keep paragraphs (double-newlines)

replace every newline that is followed by something which is NOT a newline with only the thing, that followed the newline That way I get rid of all newlines within a paragraph but keep paragraphs (double-newlines)

in emacs I sometimes use this regex

^J\([^^J]\) -> \1

means: replace every newline that is followed by something which is NOT a newline with only the thing, that followed the newline That way I get rid of all newlines within a paragraph but keep paragraphs (double-newlines)

In Emacs, I sometimes use this regex:

^J\([^^J]\) -> \1

Means:

replace every newline that is followed by something which is NOT a newline with only the thing, that followed the newline That way I get rid of all newlines within a paragraph but keep paragraphs (double-newlines)

presentation
Source Link
Archemar
  • 32.3k
  • 18
  • 75
  • 107

in emacs I sometimes use this regex

^J([^^J]) -> \1

^J\([^^J]\) -> \1

means: replace every newline that is followed by something which is NOT a newline with only the thing, that followed the newline That way I get rid of all newlines within a paragraph but keep paragraphs (double-newlines)

in emacs I sometimes use this regex

^J([^^J]) -> \1

means: replace every newline that is followed by something which is NOT a newline with only the thing, that followed the newline That way I get rid of all newlines within a paragraph but keep paragraphs (double-newlines)

in emacs I sometimes use this regex

^J\([^^J]\) -> \1

means: replace every newline that is followed by something which is NOT a newline with only the thing, that followed the newline That way I get rid of all newlines within a paragraph but keep paragraphs (double-newlines)

Source Link

in emacs I sometimes use this regex

^J([^^J]) -> \1

means: replace every newline that is followed by something which is NOT a newline with only the thing, that followed the newline That way I get rid of all newlines within a paragraph but keep paragraphs (double-newlines)