Hi,
As Joost said, read the tutorial and also perlre.
Using word boundaries should be a addon, so:
my ($thing) = $input =~ /\bfoo(.*?)bar\b/;
Regards,
I like merlyn's disclaimer
In reply to Re: Find text between two strings?
by fmerges
in thread Find text between two strings?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |