Ok then use a function to clean up the code and then your one-liner will look cleaner:
function Test-FileName($filename){
$e = "user","te"
$Test = $False
$e | %{if($filename -match $_){$Test = $true}}
return $Test
}
Dir | ?{Test-FileName $_.name} | #...do something...