in reply to extract all the text between two words

I note you have multiple ^ characters in your regular expression - this tells me that you expect to have new lines in your string. Therefore you need to use the m and s modifiers so that ^ will match starts of lines (as opposed to the start of the string) and so . can match new lines, respectively. See perlre.

Replies are listed 'Best First'.
Re^2: extract all the text between two words
by aka_bk (Novice) on Nov 13, 2009 at 17:00 UTC
    You guys are awesome fast. Thanks!