Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • @illuminÉ, see the edit. The extra (?>...) should help with the backtracking limit issue. Commented Jun 19, 2014 at 21:06
  • Thank you very much! On a quick run on the entirety of man1 I couldn't pickup one single item I didn't want from the output! I will study your expression carefully. Even seems to take care of the uneven brackets which are nested. Magical RE. Commented Jun 19, 2014 at 21:19
  • Thank you! The line break issue I had is about man and its behavior in my terminal, not your RE. MANWIDTH=1000 man man ... is needed. Even man --nh --nj won't do, as it gets upstaged by automatic hyphen from the terminal based on $COLUMNS; a terminal dependent element. 1000 is arbitrary. I tried resorting to groff but with that or "inside" man -P, there is that encoding(see extraction Q.)Ty! Commented Jun 20, 2014 at 9:19