以毫秒为单位查找日期 [英] Find date in ms word

查看:162
本文介绍了以毫秒为单位查找日期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用VBA用ms字写了查找日期格式.我用了这个[([0-3] [0-9])[./\-]([A-Za-z] {1,9})[./\-]([0-9] {4 })代码,使用吐字功能查找日期和拆分.现在我想验证发现文本是否为正确的日期格式(即验证每个阶段).请帮助我....................

Hi, I wrote finding date format in ms word using VBA. I used this "([0-3][0-9])[./\-]([A-Za-z]{1,9})[./\-]([0-9]{4})" code for finding date and split using spiting function. Now i want to validate the finding text is true date format(i.e to validate each phase). Plz help me....................

推荐答案

如何编写宏以更改找到的元素(下划线),您可以在这里找到:
无法使用Word Automation在Word文档中找到制表符在vb.net [ ^ ]

有关MS Word中正则表达式的更多信息:
http://office.microsoft. com/en-us/help/add-power-to-word-searches-with-regular-expressions-HA001087305.aspx [ http: //office.microsoft.com/zh-CN/support/putting-regular-expressions-to-work-in-word-HA001087304.aspx?CTT=5&origin=HA001087305 [ http://word.mvps.org/FAQs/General/UsingWildcards.htm [ ^ ]
How to write macro to change found elements (underline), you can find here:
Cannot find tab character in word document using word automation in vb.net[^]

More about regular expressions in MS Word:
http://office.microsoft.com/en-us/help/add-power-to-word-searches-with-regular-expressions-HA001087305.aspx[^]
http://office.microsoft.com/en-us/support/putting-regular-expressions-to-work-in-word-HA001087304.aspx?CTT=5&origin=HA001087305[^]
http://word.mvps.org/FAQs/General/UsingWildcards.htm[^]


这篇关于以毫秒为单位查找日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆