$s="http://blah/foo/stuff/more.txt"; print +(split('/',$s))[-2]; # stuff [download]
In reply to Re: Regex question by davidrw in thread Regex question by cajun