It could be something like this (precise form of regex depends on the interpretation of your question, please read the link):
my $input = "foodogbar"; my ($thing) = $input =~ /foo(.*?)bar/;
In reply to Re: Find text between two strings?
by Joost
in thread Find text between two strings?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |