Yes, you can search for patterns (not just exact text) in Word using wildcards in the Find and Replace feature. This will solve your problem by allowing you to locate decimal numbers that use a slash (/) instead of a dot (.).
Here's how to find patterns like N/M using wildcards:
- Open your Word document.
- Press Ctrl + H to open Find and Replace.
- Click More >> to expand the options.
- Check the box for Use wildcards.
- In the Find what box, enter:
- ([0-9])/([0-9])
This matches any digit ([0-9]), followed by a slash (/), followed by another digit.
Optionally, if you want to replace just those instances where slash is used instead of a decimal point:
- In the Replace with box, enter:
- \1.\2
- Click Replace All (or Find Next to review one by one).
\1 and \2 refer to the digits captured in the first and second groups (the numbers before and after the slash).
Notes:
- This will not match things like 12/05/2023 (unless you adapt the pattern), so it’s reasonably safe.
- You can modify the pattern to be stricter or more flexible, for example:
- ([0-9]{1,2})/([0-9]{1,2})
I hope this helped.
Regards,
Doug