($variable) = $string =~ /foo(.*?)bar/; [download]
In reply to Re: Find text between two strings? by artist in thread Find text between two strings? by Anonymous Monk