不知man的思路是否源于那个以前JM写的那个判断IP格式合法的批处理...
正则不是很懂,贴上其它的代码,^_^- @echo off
- set currdate=%date:~0,10%
- set /p input=input:
- echo %input:~0,4%%date:~4,1%%input:~4,2%%date:~4,1%%input:~6,2% | date >nul && (echo.合法.& echo %currdate% | date >nul) || echo.非法.
- pause
复制代码
|