GetProcessesByName
takes the process name, not a regex that the process name matches.
You probably want something like this instead...
foreach (Process P in Process.GetProcesses())
{
if (P.ProcessName.StartsWith("U", StringComparison.CurrentCultureIgnoreCase))
P.Kill();
}