$foo = "abchelloxyz"; $foo =~ /abc([\w]+)xyz/; $bar = $1; [download]
In reply to Re: (wil) Re: regex: extract a substring by krujos in thread regex: extract a substring by Galen