$match = ($string =~ /foobar(...)/) ? $1 : "chiapet";