在vim中匹配日期格式Y-m-d H:i:s或Y/m/d H:i:s

在vim中匹配日期格式Y-m-d H:i:s或Y/m/d H:i:s

\d\{4\}[-\/]\d\{1,2\}[-\/]\d\{1,2\} \d\{1,2\}:\d\{1,2}:\d\{1,2}

包括一个或多个空格

/\d\{4\}[-\/]\d\{1,2\}[-\/]\d\{1,2\}\s\+\d\{1,2\}\d\{1,2\}:\d\{1,2\}:\d\{1,2\}

/\d\{4\}[-\/]\d\{1,2\}[-\/]\d\{1,2\} \+\d\{1,2\}:\d\{1,2}:\d\{1,2}

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: