M
Mr. Novice
If test is set to all lower case letters both of the
commands listed below will have a return code of 0. How
can I search for only upper or lower case letters in a
string?
The syntax below works great if the string has a number
and your looking for a number. Its just differentiating
between upper and lower case thats causing me grief and
from what I understand A-Z and a-z are both valid
character classes.
echo %test%|findstr /r "[A-Z]"
echo %test%|findstr /r "[a-z]"
Thanks in advance for your help,
Chad
commands listed below will have a return code of 0. How
can I search for only upper or lower case letters in a
string?
The syntax below works great if the string has a number
and your looking for a number. Its just differentiating
between upper and lower case thats causing me grief and
from what I understand A-Z and a-z are both valid
character classes.
echo %test%|findstr /r "[A-Z]"
echo %test%|findstr /r "[a-z]"
Thanks in advance for your help,
Chad