Match Operator Examples

Match with a regular expression

"fred" -match "^fred$"

returns True

But it is case insensitive by default.

PascalCase cmdLets should maybe follow this regex.

"GetFunction" -cmatch "^([A-Z][a-z]+){2,}$"