Searching with Character Codes

In our last newsletter, I explained how to find Microsoft Word footnote numbers using the character code ^02. You can read the newsletter here:

http://www.topica.com/lists/editorium/read/message.html?mid=1703696660

There are other character codes you can use to find certain items:

* For a carriage return, you can use ^013.

* For a section break, you can use ^012.

* For a word space, you can use ^032.

Of course, you can also use Word's built-in codes, which you can insert into the Find dialog's "Find what" box by clicking the "Special" button:

* For a carriage return, you can use ^p.

* For a section break, you can use ^b.

* For a word space, you can use ^w for a word space (actually, any white space).

So why would you want to use the first codes?

Because if you're finding something by using wildcards, the second ones won't work. For example, let's say that (for some reason) you're searching for "wh" followed by any other character (the wildcard for which is "?"), followed by a carriage return. In the Find dialog's "Find what" box, you enter this:

wh?^p

And to make Word search for the wildcard rather than an actual question mark, you put a check in the box labeled "Use wildcards."

Finally, you click the Find button. What happens? You get an error message:

"^p is not a valid special character for the Find What box or is not supported when the Use Wildcards check box is selected."

"Well then, how," you politely ask your computer, "am I supposed to find what I'm looking for?"

As usual, it doesn't reply, but here's the answer anyway. In the "Find what" box, you enter this:

wh?^013

And that will do the job.

Ordinarily, you should probably use Word's built-in codes, such as ^p and ^b. But when those don't work, now you've got an alternative.

This entry was posted in Editing. Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

Post a Comment

You must be logged in to post a comment.

  • The Fine Print

    Thanks for reading Editorium Update (ISSN 1534-1283), published by:

    The EDITORIUM, LLC
    http://www.editorium.com

    Articles © on date of publication by the Editorium. All rights reserved. Editorium Update and Editorium are trademarks of the Editorium.

    You may forward copies of Editorium Update to others (but not charge for it) and print or store it for your personal use. Any other broadcast, publication, retransmission, copying, or storage, without written permission from the Editorium, is strictly prohibited. If you’re interested in reprinting one of our articles, please send an email message to editor@editorium.com

    Editorium Update is provided for informational purposes only and without a warranty of any kind, either express or implied, including but not limited to implied warranties of merchantability, fitness for a particular purpose, and freedom from infringement. The user (you) assumes the entire risk as to the accuracy and use of this document.

    The Editorium is not affiliated with Microsoft Corporation or any other entity.

    We do not sell, rent, or give our subscriber list to anyone. Period.

    If you’d like to subscribe, please enter your name and email address below. We publish the newsletter once a week, and on rare occasions we may send an important announcement. We never, ever send spam. Thank you for signing up!