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


in reply to Re: regular expression for getting text between 1. and 2.
in thread regular expression for getting text between 1. and 2.

Funny. The user asked the same question on SO and I replied with this same answer but he then came up with more input strings that complicate the regex.