Search code examples
ms-wordwildcardword-2013

Find and replace special character ":" in MS Word 2013


I am having a Word document (MS Word 2013) with several timing numbers like shown below:

(00:03)
(00:18)
(11:39)

And I am using Wildcards and using this pattern, shown below:

\(*:*\)

But the problem is that it also includes this type of text, shown below:

(text)
(drumroll)

I want to remove only numbers, not text. How to deal with this? Does anyone knows which pattern to use?

Any help would be greatly appreciated. Thanks!!


Solution

  • This should work

    \([0-9]{2}:[0-9]{2}\)
    

    Atleast upto 2010 above regex works.

    In 2013 you may need to escape the : with \ so try this instead

    \([0-9]{2}\:[0-9]{2}\)