Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8002583
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T16:24:15+00:00 2026-06-04T16:24:15+00:00

I have a Word document with fields of the reference variety, which occur in

  • 0

I have a Word document with fields of the reference variety, which occur in the form “[field].[field]”–in other words, there’s a period between the two fields. I want to globally replace this with a space.

Word offers the ^d special character to search for fields, but for some reason the query “^d.^d” does not find anything. However, “.^d” does. Now comes the problem, however–what do I specify as the replacement text in order to retain the field code? If using regular expressions, I could use a “Find What Expression” such as \1, but with regexp (“wild card”) mode the ^d is not permitted.

I guess I could write a macro…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T16:24:16+00:00Added an answer on June 4, 2026 at 4:24 pm

    It’s usually better to go the macro route when finding fields because, as you say, the find algorithm that Word uses doesn’t work the way you might hope with fields.

    But if you know exactly what the fields contain, you can specify a search pattern that will probably work (however not in wildcard mode).

    For example, if you want to look for figure number field pairs such as

    { STYLEREF 1 \s }.{ SEQ Figure \* ARABIC \s 1 }
    

    (which would typically be the same set of fields everywhere in the document)

    If you only really need to look for the following:

    { STYLEREF 1 \s }.<any field>
    

    you could ensure that field codes are displayed and search for

    ^d STYLEREF 1 \s ^21.^d
    

    or

    ^19 STYLEREF 1 \s ^21.^19
    

    If you need to be more precise, you can spell out the second field as well.

    “^d” only works for finding the field beginning, not the field end.

    It’s a shame that ^w wants to find at least 1 whitespace character because otherwise it would be more robust to look for

    ^19^wSTYLEREF^w1^w\s^w^21.^19
    

    Perhaps someone else knows how to work around that without using wildcards?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Word document that contains about 4000 form fields which I have
I have some code to find and replace fields in a word document with
We have an Oracle BPM 10g activity that: Reads a form-fill protected Word document
I have a MS Word document, it will end up as a protected form
I'm using automation to update protected fill-in form fields in a word document created
I have a macro which refreshes all fields in a document (the equivalent of
I have a word document with a bookmark. I use the bookmark to get
I have a word document that was saved as xml. now I need to
I am using c# to develop the function, I have a word document who
I have a requirement to display dynamically generated word document on the server in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.