Forum Discussion
hooleylist
Jun 21, 2012Cirrostratus
Hi Robbie,
There isn't an option to negate, but you could use a default case to match anything that isn't matched by a prior case:
switch -glob $var {
"/here*" {
Matched here
}
"/there*" {
Matched there
}
default {
Didn't match here or there
}
}
Aaron