9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] regexp to match paragraphs in troff documents
@ 2007-06-07 14:28 Matthias Teege
  2007-06-07 14:50 ` rog
  2007-06-07 17:46 ` Russ Cox
  0 siblings, 2 replies; 3+ messages in thread
From: Matthias Teege @ 2007-06-07 14:28 UTC (permalink / raw)
  To: 9fans

Moin,

I've tried to pipe paragraphs of a troff document to fmt but I
have problems with the correct regular expression. My first attempt
"/^\.[A-Z]++.*\n(^[^]*)*\n^\.[A-Z]++.*\n/" matches only any second
paragraph because the expression is overlapping. Does anyone have a nice
idea to match troff parapgraphs?

Many thanks
Matthias



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-06-07 17:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-07 14:28 [9fans] regexp to match paragraphs in troff documents Matthias Teege
2007-06-07 14:50 ` rog
2007-06-07 17:46 ` Russ Cox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).