精华内容
下载资源
问答
  • c# word中替换字符In addition to searching and replacing text, Word lets you search for special characters—tabs, indents, paragraph marks, and so on—and then replace them with other special ...
    c# word中替换字符

    c# word中替换字符

    word logo

    In addition to searching and replacing text, Word lets you search for special characters—tabs, indents, paragraph marks, and so on—and then replace them with other special characters. This can be handy for quick and easy changes which would typically take you a bit more time to do manually.

    除了搜索和替换文本外,Word还允许您搜索特殊字符(制表符,缩进,段落标记等),然后将其替换为其他特殊字符。 快速方便地进行更改非常方便,通常需要您多花点时间进行手动操作。

    什么时候搜索和替换特殊字符有用? (When Is Searching and Replacing Special Characters Useful?)

    To understand when searching and replacing special characters may be useful, let’s look at some examples.

    为了了解在搜索和替换特殊字符时可能有用的方法,我们来看一些示例。

    • Let’s say there is a lengthy legal document that you need to edit. You have been asked to replace the word “section” with the section symbol. The section symbol is a pair of overlapping “S” characters and is often used in legal documents to reference a numbered section in a document. Your document is over 50 pages, and there are numerous references to various sections throughout. You can easily replace the word “section” with the section symbol using search and replace.

      假设您需要编辑一份冗长的法律文件。 您被要求用节符号代替“节”。 章节符号是一对重叠的“ S”字符,在法律文档中经常用于引用文档中带编号的章节。 您的文档超过50页,并且在整个章节中都有大量引用。 您可以使用搜索和替换功能轻松地用部分符号替换“部分”一词。
    • You have just finished writing a draft of your first novel, and it includes a variety of hyphenated words. You need to keep the hyphenated words together by replacing the regular hyphen with a non-breaking hyphen. You start replacing the symbol manually but stop yourself after a few attempts. You know there has to be an easier way. There is! Just use Find and Replace to do the job for you.

      您刚刚写完了第一本小说的草稿,其中包括各种连字符。 您需要通过使用不间断的连字符替换常规的连字符来将连字符连在一起。 您开始手动替换符号,但经过几次尝试后却停止了操作。 您知道必须有一种更简单的方法。 有! 只需使用“查找并替换”即可为您完成工作。
    • A colleague has resigned, and you have been assigned the task of editing a report that the colleague worked on before he left. The report is well written, but there is inconsistent paragraph spacing throughout. After clicking Show/Hide, you discover that in some cases, there are two paragraph marks instead of one. One way to correct the paragraph spacing would be to press the Delete key every time you see an extra paragraph mark. But there’s a faster way–just search for every occurrence of two paragraph marks and replace it with one paragraph mark.

      一位同事辞职了,您被分配了编辑一份报告的任务,该报告是在他离开之前编辑的。 该报告写得很好,但整个段落的段落间距不一致。 单击“显示/隐藏”后,您发现在某些情况下,有两个段落标记而不是一个。 纠正段落间距的一种方法是,每当您看到一个额外的段落标记时,按Delete键。 但是,有一种更快的方法-只需搜索每次出现的两个段落标记并将其替换为一个段落标记。

    There are too many special characters to detail all of them, but let’s take a look at a few general examples of how searching and replacing those characters works.

    有太多特殊字符无法详细说明所有这些字符,但让我们看一些有关如何搜索和替换这些字符的一般示例。

    示例1:用特殊字符替换文本 (Example One: Replace Text with a Special Character)

    Let’s say your document looks something like this:

    假设您的文档看起来像这样:

    Word document where the word "section" appears

    Note: If you don’t see the special characters in your document, you can turn them on by clicking the Show/Hide button on the Ribbon. Its icon looks like the paragraph symbol.

    注意:如果在文档中看不到特殊字符,可以通过单击功能区上的“显示/隐藏”按钮将其打开。 其图标看起来像段落符号。

    You need to replace every occurrence of the word “Section” with a section symbol. Switch over to the “Home” tab on Word’s Ribbon and then click “Replace.” Alternatively, you can press Ctrl+H.

    您需要将每次出现的“节”替换为节符号。 切换到Word功能区上的“主页”选项卡,然后单击“替换”。 或者,您可以按Ctrl + H。

    click the replace button

    Type the word “Section” into the “Find What” box and then click the “More >>” button to expand the Find and Replace options.

    在“查找内容”框中键入单词“ Section”,然后单击“更多>>”按钮以展开“查找和替换”选项。

    type "section" into the find what box and then click more

    Click in the “Replace With” box to put your insertion point there and then click the “Special” button.

    单击“替换为”框,将插入点放在此处,然后单击“特殊”按钮。

    click into the replace with box and then click the special button

    Click “Section Character” from the dropdown list.

    从下拉列表中单击“部分字符”。

    chose section character from the menu

    Notice that the “Replace With” box now contains the text “^%”—this is Word’s code for that section symbol. Click the “Replace All” button. In this example, 16 replacements were made. Click the “OK” button and then close the Find and Replace window.

    注意,“替换为”框现在包含文本“ ^%”,这是该节符号的Word代码。 点击“全部替换”按钮。 在此示例中,进行了16次替换。 单击“确定”按钮,然后关闭“查找和替换”窗口。

    click replace all

    All occurrences of the word “Section” have now been replaced with the section character.

    现在,所有出现的“ Section”一词都已替换为section字符。

    word document showing section characters

    示例二:用不间断的连字符替换常规的连字符 (Example Two: Replace a Regular Hyphen with a Non-Breaking Hyphen)

    For this next example, notice there are quite a few hyphenated words in our sample paragraph, including three occurrences where the hyphenated words are separated on different lines. Let’s replace all the regular hyphens with non-breaking hyphens so that doesn’t happen.

    对于下一个示例,请注意在我们的示例段落中有很多连字符,包括三个出现的连字符在不同行上分开的情况。 让我们用不间断的连字符替换所有常规的连字符,以免发生这种情况。

    word document showing breaking hyphens

    On the “Home” tab, click “Replace” or just press Ctrl+H.

    在“主页”选项卡上,单击“替换”,或仅按Ctrl + H。

    click the replace button

    In the “Find What” box, delete any existing text or characters and then type a single hyphen character. Click the “More >>” button if needed to expand the Find and Replace options.

    在“查找内容”框中,删除任何现有的文本或字符,然后键入一个连字符。 如果需要,请单击“更多>>”按钮以展开“查找和替换”选项。

    type a single hyphen into the find what box

    Click in the “Replace With” box to put your insertion point there. Delete any existing text or characters and then click the “Special” button.

    单击“替换为”框,将您的插入点放在此处。 删除任何现有的文本或字符,然后单击“特殊”按钮。

    click into the replace with box and then click special

    Click “Nonbreaking Hyphen” from the dropdown list.

    从下拉列表中单击“不间断的连字符”。

    choose nonbreaking hyphen from the menu

    Notice that Word’s code for the nonbreaking hyphen—“^~”— has now been added to the “Replace With” box. Click the “Replace All” button. In this example, 11 replacements were made. Click the “OK” button and then close the Find and Replace window.

    请注意,Word的不间断连字符-“ ^〜”-现在已添加到“替换为”框中。 点击“全部替换”按钮。 在此示例中,进行了11次替换。 单击“确定”按钮,然后关闭“查找和替换”窗口。

    click replace all

    Word has replaced all hyphens with nonbreaking hyphens. Notice the hyphenated words on the right margin are no longer separated.

    Word已将所有连字符替换为不间断的连字符。 请注意,右边距处的连字符不再分开。

    word document showing only non breaking hypens

    示例三:用一个段落标记替换两个段落标记 (Example Three: Replacing Two Paragraph Marks with One Paragraph Mark)

    In this example, we want to replace any double paragraph marks with a single paragraph mark, removing the extra spacing between paragraphs.

    在此示例中,我们希望将任何双段标记替换为单个段标记,从而消除段之间的多余间距。

    word document showing extra paragraph marks between paragraphs

    On the “Home” tab, click the “Replace” button. Alternatively, you can press Ctrl+H.

    在“主页”选项卡上,单击“替换”按钮。 或者,您可以按Ctrl + H。

    click the replace button

    Click in the “Find What” box and then delete any existing text or characters. Click the “More>>” button to open up the additional options, click the “Special” button, and then click the “Paragraph Mark” option from the dropdown list.

    单击“查找内容”框,然后删除任何现有的文本或字符。 单击“更多>>”按钮以打开其他选项,单击“特殊”按钮,然后从下拉列表中单击“段落标记”选项。

    choose paragraph mark from the special menu

    Notice that Word’s code for a paragraph mark (“^v”) has been inserted into the “Find What” box. Click the “Special” button again and then click “Paragraph Mark” again from the dropdown list to place a second paragraph mark there. (Note that you could also just type “^v^v” into the box yourself if you’re already familiar with the codes.)

    请注意,段落标记(“ ^ v”)的Word代码已插入“查找内容”框中。 再次单击“特殊”按钮,然后再次从下拉列表中单击“段落标记”以在其中放置第二个段落标记。 (请注意,如果您已经熟悉代码,也可以自己在框中输入“ ^ v ^ v”。)

    choose paragraph mark from the special menu again

    There are now two paragraph marks in the Find what box. Click in the “Replace With” box, delete any existing text or characters, and then click the “Special” button. On the dropdown menu, choose “Paragraph Mark.”

    现在,在“查找内容”框中有两个段落标记。 单击“替换为”框中,删除任何现有的文本或字符,然后单击“特殊”按钮。 在下拉菜单上,选择“段落标记”。

    click into the replace with box and then use special menu to insert a single paragraph mark there

    For the final step, click the “Replace All” button. In this example, Word made eight replacements. Click the “OK” button and then close the Find and Replace window.

    对于最后一步,单击“全部替换”按钮。 在此示例中,Word进行了八次替换。 单击“确定”按钮,然后关闭“查找和替换”窗口。

    click replace all

    All occurrences of two paragraph marks have been replaced with one paragraph mark.

    所有出现的两个段落标记都已替换为一个段落标记。

    word document showing extra paragraph marks removed


    As you can see, using Find and Replace can save you lots of time when replacing special characters in your documents. And we’ve just scratched the surface here. There are more special characters waiting on that menu for you to explore.

    如您所见,当替换文档中的特殊字符时,使用“查找并替换”可以节省大量时间。 我们只是在这里刮了一下表面。 该菜单上还有更多特殊字符供您浏览。

    翻译自: https://www.howtogeek.com/364843/how-to-find-and-replace-special-characters-in-microsoft-word/

    c# word中替换字符

    展开全文
  • 微软界面设计 mfc 替换Microsoft Word’s Find and Replace feature isn’t just for replacing text. You can also use Find and Replace to locate specific types of formatting throughout your document and ...
    微软界面设计 mfc 替换

    微软界面设计 mfc 替换

    Microsoft Word’s Find and Replace feature isn’t just for replacing text. You can also use Find and Replace to locate specific types of formatting throughout your document and even replace that formatting with something else.

    Microsoft Word的“查找和替换”功能不仅仅用于替换文本。 您还可以使用“查找并替换”来查找整个文档中特定格式的类型,甚至可以将其替换为其他格式。

    查找和替换格式何时有用? (When Is Finding and Replacing Formatting Useful?)

    There are many ways to use Find and Replace for formatting, but when should you consider using Find and Replace instead of applying manual formatting changes or using other options like the Format Painter?

    有很多方法可以使用“查找和替换”进行格式设置,但是何时应该考虑使用“查找和替换”而不是应用手动格式更改或使用其他选项(例如“ 格式刷”)

    Sometimes, it makes sense to apply formatting changes manually. For example, if you need to change the color of all text or remove all instances of bold text in your document, you can do this by selecting all (Ctrl+A) and then applying the change you want. If you need to control what gets changed and what doesn’t more precisely, you might be better off going through your document and making those changes by hand.

    有时,手动应用格式更改很有意义。 例如,如果需要更改文档中所有文本的颜色或删除所有粗体文本实例,则可以通过选择全部(Ctrl + A),然后应用所需的更改来做到这一点。 如果您需要控制要更改的内容以及不能更精确地控制的内容,那么最好遍历文档并手动进行更改。

    However, there are times when Find and Replace can help you save time by applying formatting changes faster and easier than manual formatting. You can use Find and Replace to search for and change both character and paragraph formatting.

    但是,有时查找和替换可以通过比手动格式化更快,更轻松地应用格式更改来帮助您节省时间。 您可以使用“查找和替换”来搜索和更改字符和段落格式。

    Here are a few examples when it might be useful:

    以下是一些可能有用的示例:

    • You’ve used one type of character formatting throughout your document and want to change it to another type of formatting. For example, say you used italics for emphasis, and now you want to remove that formatting.

      您在整个文档中使用了一种字符格式,并希望将其更改为另一种格式。 例如,假设您使用斜体来强调,现在您要删除该格式。
    • You have a particular word or phrase to which you want to apply (or change) character formatting. For example, say you repeat the phrase “Little Red Riding Hood” throughout your document, and you’ve now decided you’d like that phrase to use a different font and red text.

      您有要应用(或更改)字符格式的特定单词或短语。 例如,假设您在整个文档中重复短语“ Little Red Riding Hood”,现在您已经决定要使用不同的字体和红色文本。
    • You’ve used a particular paragraph formatting (alignment, indentation, spacing, and so on) and you want to change that. For example, say you set specific paragraphs to be aligned to the left and have a particular indentation, and now you want to remove that indentation and center align those paragraphs.

      您已经使用了特定的段落格式(对齐,缩进,间距等),并且想要更改它。 例如,假设您将特定段落设置为向左对齐并具有特定的缩进,现在您要删除该缩进并使这些段落居中对齐。

    Now yes, with some foresight, you could have set up character and paragraph styles and then rigorously apply them throughout your document. That would make changing some of these things more manageable. But when foresight turns to hindsight, Find and Replace can help you get the job done.

    现在是的,有些先见之明,您可以设置字符和段落样式 ,然后在整个文档中严格应用它们。 这将使其中的某些更改更易于管理。 但是,当有远见的事后见之时,“查找和替换”可以帮助您完成工作。

    Ready to see it in action?

    准备好观看它了吗?

    使用查找和替换来更改字符格式 (Using Find and Replace to Change Character Formatting)

    When it comes to finding and replacing formatting, you can create a search for just specific types of formatting, or you can do that in combination with searching for text (you can even get fancy and combine it with wildcards to further refine your searches).

    在查找和替换格式时,您可以仅搜索特定类型的格式,也可以与搜索文本结合使用(您甚至可以看中并与通配符结合使用,以进一步优化搜索)。

    如果只想使用字符格式 (If You Want to Work With Character Formatting Only)

    If you want to search for formatting without accompanying text, it’s easy. Let’s take the example from earlier where we’ve decided we want to remove occurrences of italic text. Fire up the Find and Replace dialog box by heading to Home > Replace or pressing Ctrl+H.

    如果您要搜索格式而不附带文字,这很容易。 让我们以前面的示例为例,在该示例中,我们决定要删除出现的斜体文本。 转到首页>替换或按Ctrl + H,打开“查找和替换”对话框。

    On the Replace tab, click to place your insertion point in the “Find What” box. Next, click the “Format” drop-down menu and choose the “Font” option.

    在“替换”选项卡上,单击以将插入点放置在“查找内容”框中。 接下来,单击“格式”下拉菜单,然后选择“字体”选项。

    In the Find Font window, click the “Italic” option (or whatever formatting you want to search for) and then click “OK.”

    在“查找字体”窗口中,单击“斜体”选项(或要搜索的任何格式),然后单击“确定”。

    Back in the Find and Replace window, you can see that the formatting selection is now listed under the “Find What” box to help you keep track of what you’re searching.

    返回“查找和替换”窗口,您可以看到格式选择现在列在“查找内容”框下,以帮助您跟踪搜索的内容。

    Now place your insertion point in the “Replace With” box, head back Format > Font, and this time choose the “Regular” option. When you’re done, you’ll see that formatting appear under the “Replace With” box.

    现在,将您的插入点放在“替换为”框中,返回“格式”>“字体”,这次选择“常规”选项。 完成后,您会看到该格式显示在“替换为”框中。

    Notice how that says “Not Bold” and “Not Italic.” You can’t use this technique to change from one type of formatting to another—just to add or remove formatting.

    请注意这是怎么说“ Not Bold”和“ Not Italic”。 您不能使用此技术从一种格式更改为另一种格式,而只能添加或删除格式。

    At any rate, now you’re ready to search. Hit the “Find Next” button to have Word locate and highlight the next occurrence of whatever you’re searching for. Here, it’s found our next italicised word. Click the “Replace” button to make the change. Hit “Find Next” to find the next occurrence and repeat. If you’re feeling lucky, you can also hit the “Replace All” button to have Word go ahead and replace everything it finds without you having to check each one, but we recommend saving or making a copy of your document before doing this.

    无论如何,现在您可以搜索了。 点击“查找下一个”按钮,让Word查找并突出显示您要搜索的内容的下一个匹配项。 在这里,找到了我们的下一个斜体字。 单击“替换”按钮进行更改。 点击“查找下一个”以查找下一个出现并重复。 如果您感到幸运,也可以单击“全部替换”按钮以使Word继续进行并替换找到的所有内容,而无需检查每一个,但是我们建议您保存或制作文档的副本。

    如果要使用字符格式和文本 (If You Want to Work with Character Formatting and Text)

    Easy enough, but what if you want to work with both formatting and text at the same time? Let’s take a bigger example.

    很容易,但是如果您想同时使用格式和文本怎么办? 让我们举一个更大的例子。

    Say you just finished typing and formatting a report, and for the company name, “Lorem Incorporated,” you applied bold, italics and blue font color for emphasis. Your document looks something like this:

    假设您刚刚完成报表的输入和格式设置,并且对于公司名称“ Lorem Incorporated”,您使用了粗体,斜体和蓝色字体颜色进行强调。 您的文档如下所示:

    Your manager reviews your report and asks you to remove the blue color, bold, and italics. Also, you need to change “Lorem Incorporated” to “Lorem Inc.” You need to make the changes quickly, and then email the revised report to your manager as soon as possible. You can do all this easily via Find and Replace.

    经理会审核您的报告,并要求您删除蓝色,粗体和斜体字。 另外,您需要将“ Lorem Incorporated”更改为“ Lorem Inc.”。 您需要快速进行更改,然后将修订后的报告尽快通过电子邮件发送给您的经理。 您可以通过“查找和替换”轻松完成所有这些操作。

    Fire up the Find and Replace dialog box by heading to Home > Replace or pressing Ctrl+H.

    转到首页>替换或按Ctrl + H,打开“查找和替换”对话框。

    Type “Lorem Incorporated” into the “Find What” box. Click the “More” button to expand the Find and Replace options if they aren’t already displayed.

    在“查找内容”框中键入“ Lorem Incorporated”。 单击“更多”按钮以展开“查找和替换”选项(如果尚未显示)。

    Next, click the “Format” button on the bottom left, and then click the “Font” option.

    接下来,单击左下方的“格式”按钮,然后单击“字体”选项。

    In the Find Font window, click the “Bold Italic” font style. On the “Font Color” drop-down menu, choose the blue color (which is currently applied to the text). Click “OK” when you’re done.

    在“查找字体”窗口中,单击“粗斜体”字体样式。 在“字体颜色”下拉菜单上,选择蓝色(当前应用于文本)。 完成后,单击“确定”。

    Notice that the format selections you just made appear under the “Find What” box.

    请注意,您刚刚进行的格式选择将显示在“查找内容”框下。

    Next type “Lorem Inc.” into the “Replace With” box. Click the “Format” button again and then click “Font.”

    下一类“ Lorem Inc.” 放入“替换为”框中。 再次单击“格式”按钮,然后单击“字体”。

    Choose the “Regular” font style and on the “Font Color” drop-down menu, choose “Automatic” (which defaults to black). Click “OK” when you’re done.

    选择“常规”字体样式,然后在“字体颜色”下拉菜单上,选择“自动”(默认为黑色)。 完成后,单击“确定”。

    Now, you can use the “Find Next” and “Replace” buttons, in turn, to step through each occurrence in your document or you can click the “Replace All” button to change all occurrences at once. If you use “Replace All” we recommend saving or creating a copy of your document first.

    现在,您可以依次使用“查找下一个”和“替换”按钮逐步浏览文档中的每个事件,也可以单击“全部替换”按钮一次更改所有事件。 如果您使用“全部替换”,我们建议您先保存或创建文档的副本。

    使用查找和替换来更改段落格式 (Using Find and Replace to Change Paragraph Formatting)

    You can also use Find and Replace to work with paragraph-level formatting, and it works pretty much the same way as working with character-level formatting. You can even use it to find and replace character and paragraph formatting at the same time if you want.

    您还可以使用“查找和替换”来处理段落级格式,它的工作方式与处理字符级格式几乎相同。 如果需要,您甚至可以使用它同时查找和替换字符和段落格式。

    But let’s take a more straightforward example to see how it works. Let’s say that we’ve copied and pasted some paragraphs from another Word document to use in our document. In our document, we’re using standard line spacing where there is no added space before paragraphs and 8pt spacing after paragraphs.

    但是,让我们以一个更简单的示例来看一下它是如何工作的。 假设我们已经复制并粘贴了另一个Word文档中的某些段落以在我们的文档中使用。 在我们的文档中,我们使用标准行距 ,其中在段落前没有添加空格,在段落后没有8pt间距。

    For some reason, the document we’re pulling paragraphs from is set up to use 18pt spacing both before and after paragraphs. We’re pasting the text with formatting because we want to retain the character-level formatting like bold text.

    出于某种原因,我们从建立拉段的文档使用18pt之前之后的段落间距。 我们要粘贴带有格式的文本,因为我们想要保留字符级别的格式,如粗体文本。

    The results don’t look great because the paragraph we copied and pasted has much more space before and after it than our other paragraphs do.

    结果看起来不太好,因为我们复制粘贴的段落之前和之后的空间都比其他段落大得多。

    Now, one way to fix this would be to hit Ctrl+A to select the whole document and then set line spacing for all the paragraphs in the document to their default values. But, what if we did have some paragraphs where we had adjusted line spacing and wanted to keep that?

    现在,解决此问题的一种方法是按Ctrl + A选择整个文档,然后将文档中所有段落的行距设置为其默认值。 但是,如果我们确实有一些段落调整了行距并希望保留该行距怎么办?

    You guessed it—Find and Replace to the rescue. Fire it up again from Home > Replace or by hitting Ctrl+H.

    您猜对了—查找并替换来进行救援。 从“首页”>“替换”或按Ctrl + H再次启动它。

    Place your insertion point in the “Find What” box, open the “Format” drop-down menu, and choose the “Paragraph” option.

    将插入点放在“查找内容”框中,打开“格式”下拉菜单,然后选择“段落”选项。

    In the Find Paragraph window, select the formatting for which you want to search. In our case, we’re searching for paragraphs where the before and after spacing is 18pt. When you’re set up, click “OK.”

    在“查找段落”窗口中,选择要搜索的格式。 在本例中,我们正在搜索前后间距为18pt的段落。 设置完成后,点击“确定”。

    You’ll now see that formatting listed under the “Find What” box.

    现在,您会在“查找内容”框下方看到该格式。

    Now place your insertion point in the “Replace With” box, open the “Format” drop-down menu again, and click “Paragraph.”

    现在,将插入点放在“替换为”框中,再次打开“格式”下拉菜单,然后单击“段落”。

    This time, set up the formatting you want to use as a replacement. We’re going with Word’s default of no spacing before and 8pt after—the same as in the rest of our document. Click “OK” when you’ve got it set up.

    这次,设置要用作替代的格式。 Word的默认默认值是在文档的其余部分之前和之后均不保留8pt。 设置完成后,单击“确定”。

    Now you’re ready to search. Hit the “Find Next” button to have Word locate and highlight the next occurrence of whatever you’re searching for. Here, it’s found our weirdly-spaced paragraph. Click the “Replace” button to make the change. Hit “Find Next” to find the next occurrence and repeat. You can also hit the “Replace All” button to have Word go ahead and replace everything it finds without you having to check each one, but we recommend saving or making a copy of your document before doing this.

    现在您可以开始搜索了。 点击“查找下一个”按钮,让Word查找并突出显示您要搜索的内容的下一个匹配项。 在这里,找到了我们奇怪的段落。 单击“替换”按钮进行更改。 点击“查找下一个”以查找下一个出现并重复。 您也可以单击“全部替换”按钮,以使Word继续进行并替换找到的所有内容,而无需检查每一个,但是建议您在执行此操作之前保存或制作文档的副本。

    And after performing our replacement, we’ve now got a paragraph spaced just like our others.

    在执行替换后,我们现在得到了与其他段落一样的段落间距。



    You can get a lot more sophisticated with your searches than the simple examples we’ve provided here. You can combine multiple different types of character and paragraph formatting into a single search. You can even use wildcards and other special characters to get more creative with the specific text you find. But that should be enough to get you started!

    与我们在此处提供的简单示例相比,您的搜索将变得更加复杂。 您可以将多种不同类型的字符和段落格式组合到一个搜索中。 您甚至可以使用通配符和其他特殊字符来使您所找到的特定文本更具创意。 但这足以让您入门!

    翻译自: https://www.howtogeek.com/363203/how-to-find-and-replace-formatting-in-microsoft-word/

    微软界面设计 mfc 替换

    展开全文
  • 微软界面设计 mfc 替换Have you ever finishing typing a letter, report or presentation only to discover that you misspelled a person’s name or had the wrong company listed multiple times throughout ...
    微软界面设计 mfc 替换

    微软界面设计 mfc 替换

    Have you ever finishing typing a letter, report or presentation only to discover that you misspelled a person’s name or had the wrong company listed multiple times throughout your document? No worries—it’s an easy fix. Using Word’s Find and Replace feature, you can quickly locate and replace text. Let’s see how it works.

    您是否曾经只写过一封信,一份报告或一份简报,以发现您拼错了一个人的名字或在整个文档中多次列出了错误的公司? 不用担心,这很容易解决。 使用Word的“查找和替换”功能,可以快速查找和替换文本。 让我们看看它是如何工作的。

    Switch over to the “Home” tab on Word’s Ribbon and then click the “Replace” button.

    切换到Word功能区上的“主页”选项卡,然后单击“替换”按钮。

    This opens Word’s Find and Replace window. In the “Find What” box, type the word or phrase you want to locate. If you only want to find text in your document, you can go ahead and click the “Find Next” button to have Word jump to the next occurrence of that word. Keep clicking it to browse through all the results.

    这将打开Word的“查找和替换”窗口。 在“查找内容”框中,键入要查找的单词或短语。 如果只想在文档中查找文本,则可以继续并单击“查找下一个”按钮,以使Word跳至该单词的下一个出现位置。 继续单击以浏览所有结果。

    If you want to replace the text you find with something else, type the replacement text into the “Replace With” box. You can enter up to 255 characters in the both the “Find What” and “Replace With” boxes, by the way.

    如果要用其他内容替换找到的文本,请在“替换为”框中键入替换文本。 顺便说一下,您最多可以在“查找内容”和“替换为”框中输入255个字符。

    In this example, let’s say we want to replace the name “Williams” with the name “Billingsly”, so we’ve typed that text into the respective boxes. Next, we’d click the “Find Next” button to have Word locate the first instance of the text in the “Find What” box.

    在此示例中,假设我们要将名称“ Williams”替换为“ Billingsly”,因此我们已在相应的框中键入了该文本。 接下来,我们将单击“查找下一个”按钮,以使Word在“查找内容”框中查找文本的第一个实例。

    Word jumps the document to that point and highlights the result in gray, still keeping the Find and Replace window on top for you. Click the “Replace” button to replace the currently selected result with whatever text is in the “Replace With” box.

    Word将文档跳到该点并以灰色突出显示结果,但仍然为您保留“查找和替换”窗口的顶部。 单击“替换”按钮,将当前选定的结果替换为“替换为”框中的任何文本。

    To replace all instances at once without stopping and reviewing each one, you can click the “Replace All” button.

    要一次替换所有实例,而又不停止并检查每个实例,可以单击“全部替换”按钮。

    Be careful when using “Replace All” because it will automatically replace all instances, including those you might not want to replace. In the example below, there are three more instances of “Williams,” but we only want to replace the next two. In this case, we would only click “Replace” for the second and third instance.

    使用“全部替换”时请小心,因为它将自动替换所有实例,包括您可能不想替换的实例。 在下面的示例中,还有三个“威廉姆斯”实例,但是我们只想替换下两个。 在这种情况下,我们只需要对第二个和第三个实例单击“替换”。

    If there is a particular instance where you don’t want to replace the text, click “Find Next” as many times as needed until you come to an example where you need to replace text.

    如果在某些特定情况下您不想替换文本,请根据需要多次单击“查找下一个”,直到出现需要替换文本的示例。

    To exit from Find and Replace, click the “Cancel” button.

    要退出查找和替换,请单击“取消”按钮。

    Of course, since it is Word we’re talking about here, there are also lots of other things you can do to make your searches more sophisticated:

    当然,由于我们在这里谈论的是Word,因此您还可以做很多其他事情来使搜索更加复杂:

    The basic of searching and replacing text in Word are pretty straightforward, but there’s a lot you can do with it once you start digging.

    在Word中搜索和替换文本的基础非常简单,但是一旦开始挖掘,您可以做很多事情。

    翻译自: https://www.howtogeek.com/363017/how-to-find-and-replace-text-in-microsoft-word/

    微软界面设计 mfc 替换

    展开全文
  • Word中如何使用通配符进行查找替换关-1- 注-1-公-1-众-1-号-1-"求学若渴"下载完整视频教程在查找替换操作中,使用通配符可以执行一些非常灵活的操作,让用户处理文档更加游刃有余。一,通配符的使用规则与注意...

    Word中如何使用通配符进行查找和替换

    关-1- 注-1-公-1-众-1-号-1-"求学若渴"下载完整视频教程

    在查找和替换操作中,使用通配符可以执行一些非常灵活的操作,让用户处理文档更加游刃有余。

    一,通配符的使用规则与注意事项

    在使用通配符进行查找和替换前,我们先来了解什么是通配符、什么是代码,以及使用通配符时需要注意的事项等。

    (1)通配符

    5cd159bb075a858a8bfbe16f87a89cbc.png

    (2)代码

    34d954009e46850a1f197c8e38479108.png

    二,实战:批量删除空白段落

    在编辑文档时,可能会不小心输入了许多空行,如果手动删除不仅效率低,而且还相当繁琐。针对这样的情况,我们可以通过替换功能来快速删除。

    (1)不使用通配符删除

    36d52a5978c9a93ee65576387942f574.png

    (2)使用通配符删除

    35ea75b14437936da9c694ebffaf1bfb.png

    (3)批量删除混合模式的空白段落

    591222e397da286b69d620773a01a96d.png

    三, 实战:批量删除重复段落

    由于复制/粘贴操作或其他原因,可能会导致文档中存在很多重复段落。如果手动分辨并删除重复段落,将会是一件非常麻烦的工作,尤其是大型文档更加繁琐。这时,我们可以使用替换功能,将复杂的工作简单化。

    dacb72079ac6fa2481855bd5415bfe35.png

    四, 实战:批量删除中文字符之间的空格

    通常情况下,英文单词之间需要空格分隔,中文字符之间不需要有空格。在输入文档内容的过程中,因为操作失误,在中文字符之间输入了空格,此时可通过替换功能清除中文字符之间的空格。

    96d6e09029e02a634f29eba81194bd66.png

    五,实战:一次性将英文直引号替换为中文引号

    在输入文档内容时,若不小心将中文引号输成了英文引号,可通过替换功能进行批量更改。

    f29db794d3cbc10b23d62b2f69ca58e0.png

    六, 实战:将中文的括号替换成英文的括号

    完成文档的制作后,有时可能会翻译成英文文档,若文档中的中文括号过多,逐个手动修改成英文括号,非常费时费力,此时可以通过替换功能高效完成修改。

    4065f79055b51028c5f5c27993d3496d.png

    七, 实战:批量在单元格中添加指定的符号

    完成表格的编辑后,有时候可能需要为表格中的内容添加统一的符号,例如要为表示金额的数字添加货币符号,此时,可通过替换功能批量完成。

    33bfd0fdf370639fe30bf22ba904ea0d.png

    八, 实战:在表格中两个字的姓名中间批量添加全角空格

    编辑表格时,为了使表格更加美观,有时需要在表格中所有两个字的姓名中间批量添加一个全角空格,使之与三个字的姓名对齐。

    f8367a3ecf826284ff037d4b2f056f7a.png

    九, 实战:批量删除所有以英文字母开头的段落

    在中英文字分行显示的中英双语文档中,如果希望删除所有英文段落只保留中文段落,则可以通过替换功能快速实现。

    7cc4d4b5d8821e797bcfa29e033ccf1e.png

    十, 实战:将中英文字分行显示

    如果希望中英文内容自动分行显示,可通过替换功能快速实现。

    255c7814418415ff44259fecccb96832.png
    展开全文
  • 在WORD中如何查找特殊字符

    千次阅读 2008-03-21 10:37:00
    在WORD中如何查找特殊字符可以在WORD2000及以上版本中的“查找内容”和“替换为”框中使用的代码段落标记()(选中“使用通配符”复选框时在“查找内容”框中无效) ^p 制表符() ^t ANSI 或 ASCII 字符 ^0nnn,...
  • 在Word中查找替换功能很多人都会使用,最通常是用它来查找替换文字,但实际上还可用查找替换格式、段落标记、分页符和其他项目,并且还可以使用通配符和代码来扩展搜索。 笔者以一些例子来说明如何将word中查找...
  • ​zhuanlan.zhihu.com中,我们学习了如何在Word中替换字体/段落/样式等格式。今天,我们一起来学习如何在Word中高效使用特殊格式和通配符。在Word中,特殊格式可分两种情况,即「不使用通配符情况下的特殊格式」和「...
  • word批量替换不同文字的方法:首先点击“文件目录”,把要替换文字的word选取添加到右边的“要替换的文件列表”;然后查找内容”右边的框上输入要查找的文字即可。本文操作环境:Windows7系统,Microsoft ...
  • 书签在Word文档尤其是在篇幅比较长的word文档的应用非常广泛。当我们对一段文本添加书签后,这段文本将会被方括号包围。下一次我们可以直接通过...本文将介绍如何使用一个.NET Word组件-Spire.Doc在Word文档添加
  • 请记住,始终使用**“查找替换”**对话框来运行您的正则表达式。同时请记住,如果表达式没有按预期工作,你始终可以按下 CTRL + Z 来撤销您的更改,然后尝试其他表达式。 转置姓名 启动 Word,然后打开一个新的...
  • 今天,小编要来给大家安利一组Word中超级强大的快捷键!——【Ctrl+H】,这个快捷键对应的是Word里的查找替换功能,你一定觉得奇怪,这个功能有什么新鲜的?不就是查找和替换吗?NONONO!它可不仅仅是这么简单哦!想...
  • 有的时候我们需要替换回车符,而回车是没有办法单行文本框进行输入的,微软word的开发者替我们想到了这个问题,可以替换特殊符号,请看下图的菜单,还有很多其他特殊字符可以查找替换: ...
  • Word常用查找替换实例及方法 可以大幅提高排版效率! 不看绝对后悔,建议下了留着备用 另:别人写的,不记得从哪里下的了: 目录 Word查找替换•ASCII字符集代码 I Word查找栏代码•通配符一览表 II Word...
  • 本文,将学习如何在C ++应用程序中查找替换Word文档的文本。当需要一次性替换多个文档的特定文本时,这可能会很有用。 查找替换Word文档的文本 使用正则表达式查找替换文本 使用元字符替换文本 ...
  • ——————————例如,我们在Word中编辑文档的时候,经常因为文档中内容很凌乱,花费大量的时间去整理,并且做许多重复的操作。我们如何才能避免这些情况呢?不用担心,学会下面的小妙招,能轻松帮你进一步提升...
  • (2)使用ctrl+A组合键全部选中,然后使用ctrl+H组合键打开替换面板,然后在查找内容及“替换为”文本输入框输入你需要进行替换的文本,然后点击全部替换。 (3)再使用Alt + F9组合键,回到域结果状态,看看你的...
  • 大家晚上好~今天跟小伙伴分享一个查找替换的技巧~有小伙伴在文章留言,如果想在word里操作0,避开90,是不是不可行?嘿嘿,不是没有办法的喔~今天我们一起来学习一下~在这里简单举个小例子,英文和中文后有个0,我们...
  • word-break: break-all;display: inline-block;"> </code></pre> <p>i try to use this command <pre><code>SELECT * FROM `oc_product_description` WHERE `description` LIKE '%<h2 class="ui-box-...
  • 如果一个文档有几百页甚至上... Word 2016 ,除可快速定位到页外,还能快速定位到节、行、标题、表格、图形、书签、公式、脚注、尾注等,可定位的项相当,要找到它们就变得相当容易。Word 2016 快速定位方法打...
  • 不墨迹直接上替换设置的图。 在word中Ctrl+H, 查找内容设置为[0-9]为数字通配符,- 为符号-查找设置。 替换内容里面\1 表示查找项里第一个通配符数据,\2为第二个。 ...
  • word查找指定内容批量替换为或加上自动连续编号(域)有时候为了方便对文章进行修订,希望在文章里每一个段落的每个句子前进行连续编号...能够实现自动连续编号的域在word中能够实现这一功能的域有AutoNum、AutoNumL...
  • 使用Word的“替换”功能,不仅可以对文档的内容进行批量替换,还可以批量设置特定文本的字体格式。下面演示一下如何把文档出现过两次的“李白”,一次性批量改成想要的字体格式。一。打开Word新建文档后,点击...
  • 概要:平时的工作,我们避免不了与众多 Word 文件、PPT 文件、PDF 文件、TXT 等文件打交道,有时候我们需要对这些文件进行批量修改与替换内容。这里我们介绍了这样的一款工具,它可以很方便快速地达到我们的目的。...
  • 有时编辑PDF文档的内容时,如果需要修改大批量一样的内容,是否也能像Word一样直接用关键字查找替换呢?如何操作呢?下面一起来看看吧。首先我们用极速PDF编辑器打开PDF文档,接着使用查找快捷键Ctrl+H打开替换...
  • 文档的空白处按住ctrl键,敲F9,出来的大括号输入SEQ \A既是{SEQ \A},【注意SEQ后面有一个空格】;然后选取该域,剪切; 接下来查找查找内容→##→替换为→^c→全部替换;最后ctrl+A,按F9。 到此为止,...
  • 在WORD中编辑规范性文件时,经常会用到诸如“第一条、第二条…第十一条…第一百一十一条……”和“第一章、第二章…第十一章…”等情况,需要统一将“第*条”的字体设置为黑体等格式,将“第*章”及后面对应的章名称...
  • 替换word中的软回车

    2018-08-03 14:43:23
    有时候我们从网页上复制一些文章到Word中时,往往会带有好多向下箭头的符号,这就是软回车符号(Word中软回车是同时按住shift+enter得来的), 这些软回车占用了Word很多的空间,那么如何才能删除这些软回车符号呢?...

空空如也

空空如也

1 2 3 4 5 ... 12
收藏数 240
精华内容 96
关键字:

在word中如何查找替换