Is there a way to look up patterns inside an MS Word document instead of an exact match?
I have a document where all decimals have been written as /
instead of .
. For example, 1.02
has been written as 1/02
, because Persian typography uses /
instead of .
for the decimal point.
As /
is not only used for decimals, and it has other applications, for example, fractions, percentage, etc., is there a way to find a pattern like N/M
within a word document, where N
denotes a decimal and M
also shows another decimal number?
Answer
like 'N/M' within a word document, where N denotes a decimal and M also shows another decimal number
Just for a search you can use ^#/^#
as your search parameter. Under the more options, and find Special, there are some other options that can be helpfull.
Nb: ^#
, is one decimal place so if you are looking specifically for x/yy then it would be ^#/^#^#
etc.
to Replace,
This is a better option , perform search with ([0-9])/([0-9])
and replace with \1.\2
, and enable "use wildcards"
Comments
Post a Comment