티스토리 뷰

정규식 사용

findstr has no full REGEX Support. Especially no {Count}. You have to use a workaround:


echo %var%|findstr /r "^[a-z][a-z]$ ^[a-z][a-z][a-z]$"

which searches for ^[a-z][a-z]$ OR ^[a-z][a-z][a-z]$


(Note: there is no space between %var% and | - it would be part of the string)



디렉토리 최신순 파일명만

dir /o-d /b


escape 문자

^

댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2025/04   »
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30
글 보관함