Detect if a string contains uppercase characters
You can use LINQ:
fullUri.Any(char.IsUpper);
RegEx seems to be overkill:
bool containsAtLeastOneUppercase = fullUri.Any(char.IsUpper);
Use Linq!
fullUri.Any(c=> char.IsUpper(c));
You can use LINQ:
fullUri.Any(char.IsUpper);
RegEx seems to be overkill:
bool containsAtLeastOneUppercase = fullUri.Any(char.IsUpper);
Use Linq!
fullUri.Any(c=> char.IsUpper(c));