Yes, it can be done.
Now, let's see if I can remember how...
Ah hah! I knew I had this somewhere...
Find What is:
([0-9].)(^t^t)
Replace with is:
^t\1^t
And "Use Wildcards" must be turned on.
What this does is divide the find into two regular expressions, using ( and
).
The first expression finds any SINGLE digit 0 to 9 followed by a period.
The second expression finds the two consecutive tabs.
Then in the Replace, we add a tab, whatever the first Find expression found,
and another tab. We discard the result of the second find expression (the
two tabs).
If your number series exceeds one digit, you need to double the [0-9] in the
first expression and run that first to do all the two-digit numbers, then
remove that and run again to do the single digit numbers. If you try to do
the singles first and then the doubles, you'll break it
Hope this helps
I am working on some tests and evaluations where the author did not
use numerals and tabs correctly.
I want to be able to use a wildcard search to find, for example "1.
^t^t" and replace it with "^t1.^t" and the "1" would whatever number
from 0-9. In other words, I want to search once, then do a replace
that will fix the formatting of the tabs and keep the numbers the
same.
Can this be done?
--
Mactopia is currently broken: the helpers are not seeing any of the
questions being posted. Microsoft is working on the problem. In the
meantime:
To successfully post in here, either use Google:
http://groups.google.com/group/microsoft.public.mac.office.word?lnk=
Or Microsoft Communities:
http://www.microsoft.com/communities/newsgroups/en-us/default.aspx?dg=micros
oft.public.mac.office.word&cat=en_US_3cf8ecf1-ca81-4391-b07d-8933029ee8a9&la
ng=en&cr=US
Or in Entourage, use the pre-configured Microsoft News server:
See "setting up Entourage for Newsreading" here:
http://word.mvps.org/Mac/AccessNewsgroups.html
This email is my business email -- Please do not email me about forum
matters unless you intend to pay!
John McGhie, Microsoft MVP (Word, Mac Word), Consultant Technical Writer,
McGhie Information Engineering Pty Ltd
Sydney, Australia. | Ph: +61 (0)4 1209 1410
+61 4 1209 1410, mailto:
[email protected]