Nitesh Kothari
Nitesh Kothari

Reputation: 888

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!!

Upvotes: 1

Views: 97

Answers (2)

Liem To
Liem To

Reputation: 19

You can use these sites to practice and understand RegExp

Try to use this pattern in your case. I have tested it in the links above, not MS Word

\(\d\d:\d\d\)

Upvotes: -1

Rahul
Rahul

Reputation: 11550

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}\)

Upvotes: 1

Related Questions