in reply to Regular Expression Assistance

$path =~ m/thanksforhelping([^.]+)\.ext/; $whatyouwant = $1;