using wildcards to add spaces between initials?

  • Thread starter Thread starter DebEdit
  • Start date Start date
D

DebEdit

I want to add spaces between initials in a bibliography: H. A. Smith rather
than H.A. Smith, and so on. Is there any way to do that using wildcards?
Finding the instances isn't difficult; I'd rather avoid having to manually
insert the space in hundreds of entries.
Thank you!
 
I want to add spaces between initials in a bibliography: H. A. Smith rather
than H.A. Smith, and so on. Is there any way to do that using wildcards?
Finding the instances isn't difficult; I'd rather avoid having to manually
insert the space in hundreds of entries.
Thank you!

Using wildcards, enter this in Find What:

([A-Z].)([A-Z].)

and enter this in Replace With:

\1 \2

Notice the space between the 1 and the backslash. The \1 represents whatever is
matched by the first expression in parentheses, and the \2 represents whatever
is matched by the second expression.
 
That works, but is there any way I can do the change globally, as it will
automatically add a space between the initials without me reviewing each one?

Jay Freedman said:
I want to add spaces between initials in a bibliography: H. A. Smith rather
than H.A. Smith, and so on. Is there any way to do that using wildcards?
Finding the instances isn't difficult; I'd rather avoid having to manually
insert the space in hundreds of entries.
Thank you!

Using wildcards, enter this in Find What:

([A-Z].)([A-Z].)

and enter this in Replace With:

\1 \2

Notice the space between the 1 and the backslash. The \1 represents whatever is
matched by the first expression in parentheses, and the \2 represents whatever
is matched by the second expression.

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the newsgroup so all may benefit.
 
Click the Replace All button in the Replace dialog.

That works, but is there any way I can do the change globally, as it will
automatically add a space between the initials without me reviewing each one?

Jay Freedman said:
I want to add spaces between initials in a bibliography: H. A. Smith rather
than H.A. Smith, and so on. Is there any way to do that using wildcards?
Finding the instances isn't difficult; I'd rather avoid having to manually
insert the space in hundreds of entries.
Thank you!

Using wildcards, enter this in Find What:

([A-Z].)([A-Z].)

and enter this in Replace With:

\1 \2

Notice the space between the 1 and the backslash. The \1 represents whatever is
matched by the first expression in parentheses, and the \2 represents whatever
is matched by the second expression.

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the newsgroup so all may benefit.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top