http://www.perlmonks.org?node_id=172793


in reply to Title Re: collapsing revisited

A very good effort; I've just recently started going through my writeups and collapsing anything with more than double "Re:"s. My interjection is that I prefer the "Re^3:" style collapsing - but if collapsing happened automatically, I would likely not care enough to edit the node title. A bigger concern is that your code would break apart where it encounters a "Re^X:". It should probably try to match not /Re\((\d+)\):/ but rather something akin to /Re.(\d+).?:/.

Makeshifts last the longest.