in reply to Re: (wil) Re: regex: extract a substring
in thread regex: extract a substring

en passant:
$foo='abchelloxyz'; ($bar=$foo)=~s/abc(\w+)xyz/\1/;