foreach (qw<foocatbar foodogbar foonullooops>) { if (/foo(.*)bar/) { print "$1\n"; } else { print "not found in $_\n"; } }
Smylers
In reply to Re: Find text between two strings?
by Smylers
in thread Find text between two strings?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |