I am working with the following match statement:
$folder -match "[A-Z][A-Z][A-Z][A-Z][A-Z0-9]_*"
However, it does not work the way I would it expect to work. I would expect
$folder="ABCDE-SomeOtherText"
to be false, and
$folder="ABCDE_SomeOtherText"
to be true.
Unfortunately, both arguments are true. How can I test if the 6th position is an underscore (_) and not anything else ?
Thanks!