Why does findstr not handle case properly (in some circumstances)?

后端 未结 4 1435
名媛妹妹
名媛妹妹 2020-11-29 07:08

While writing some recent scripts in cmd.exe, I had a need to use findstr with regular expressions - customer required standard cmd.exe commands (no GnuWin32 no

4条回答
  •  渐次进展
    2020-11-29 07:23

    So if you want

    • only numbers : FindStr /R "^[0123-9]*$"

    • octal : FindStr /R "^[0123-7]*$"

    • hexadécimal : FindStr /R "^[0123-9aAb-Cd-EfF]*$"

    • alpha with no accent : FindStr /R "^[aAb-Cd-EfFg-Ij-NoOp-St-Uv-YzZ]*$"

    • alphanumeric : FindStr /R "^[0123-9aAb-Cd-EfFg-Ij-NoOp-St-Uv-YzZ]*$"

提交回复
热议问题