in reply to Re: (wil) Re: regex: extract a substringin thread regex: extract a substring
$foo='abchelloxyz'; ($bar=$foo)=~s/abc(\w+)xyz/\1/; [download]