From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <082ffdbcfda12b51637105e95ea479c8@mteege.de> To: 9fans@cse.psu.edu Date: Thu, 7 Jun 2007 14:28:37 +0000 From: Matthias Teege MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: [9fans] regexp to match paragraphs in troff documents Topicbox-Message-UUID: 7a85654c-ead2-11e9-9d60-3106f5b1d025 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