// TODO: get rid of the replace after doing the todo right below this. Currently necessary, as otherwise its trying to i.e. do a regex of "C:\Users\foo", and \U is not a valid regex escape sequence.
stringhome=Environment.GetFolderPath(Environment.SpecialFolder.UserProfile).Replace("\\","\\\\");// This is \ -> \\
boolwasSuccessful=false;
// TODO: instead of creating 3 different regexes, only create one regex and fill it out depending on current OS. Just leech off of the os check a bit further down for that.