in reply to Find text between two strings?

foreach (qw<foocatbar foodogbar foonullooops>) { if (/foo(.*)bar/) { print "$1\n"; } else { print "not found in $_\n"; } }

Smylers