Word replacement skills

Source: Internet
Author: User
Tags add numbers

Source: http://www.gisall.com /? Uid-153242-action-viewspace-itemid-5846

Word replacement Techniques

1.
In the Word
When performing "Search" and "replace", if you use wildcards for related operations, you can greatly improve work efficiency. Below are some examples of common wildcard searches:
The wildcard "[]" is used to find one of the specified characters, such as "th [iu] g". Then, you can find "thigh" and "thug ".
Wildcard "[!]" Used to find any character other than the specified character, such as "m [! A] st ", used to search for" mist "and" most ", but not" mast ".

When searching, you can also search by expression. "{n}" indicates n times to repeat the previous character, for example, "te {2} n ", "teen" instead of "ten ".
Next, let's take a look. In "search content", type "(America)" and "\ 2 \ 1" in "Replace ", in Word, find "America China" and replace it with "China America ".

Blogger note: the last high skill is amazing. Requirement: Change the period between all numbers in the text to-, that is, 23.28 to 23-28. Wildcard characters and () characters can be combined. Search box: ([1-9]). ([1-9])
(Select the wildcard Mode)

Enter \ 1-\ 2 in the replacement box.

Source: http://blog.sina.com.cn/s/blog_591e979d0100h0qt.html

2.

Word search and replacement Tips 1

For example, Mr. a B

Mr. c d

To be replaced

Mr. a B
Mr. c d

Form,

How do I replace with wildcards?

-----------------
Search: Mr. ([a-zA-Z] {1,} [a-zA-Z] {1 ,})
Replace: \ 1, mr.

1. In the search, brackets can be used to define a variable. The replacement can be referenced in \ 1 and \ 2 in their order.
2. [] indicates a character combination, which defines which characters appear at this position are matched characters for search.

-----------------
For example, how to replace:
Newton is his brother of Chisetie.
I want to change the order of Newton and Chisetie.

Find :( Newton) (*) (Chisetie)
Replace: \ 3 \ 2 \ 1
* Represents any character

-----------------

Dim oFolder As ID. Folder
Dim oDoc As ID. Document
Dim oObjSet As ID. ObjectSet
Dim oClass As ID. ClassDescription
Dim fObjSet As ID. ObjectSet

For example, there are several rows
I want to use replacement to remove the characters after ""
To:
Dim oFolder
Dim oDoc
Dim oObjSet
Dim oClass
Dim fObjSet

-------------------

Use wildcards,
Search: As * (Dim)
Replace: ^ p \ 1

==========

Word search skills

From Shui Mu community

The general search knows all about it.
Write an advanced skill. The main content is from the word help document. I hope you can use help more.

I. Use of wildcards
Like many search engines, wildcard characters can be used for word search, which is more flexible.
1. Any string
Type *
For example, s * d can search for "sad" and "started ".
2. Any single character
Type?
For example, s? T to search for "sat" and "set ".
3. Start of a word
Type <
For example, <(inter) searches for "interesting" and "intercept", but not "splintered ".
4. End of a word
Type>
For example, (in)> Find "in" and "within", but not "interesting ".
5. One of the specified characters
Enter [] note the use of brackets
For example, w [io] n searches for "win" and "won ".
6. Any single character in the specified range
Type [-]
For example, [r-t] ight searches for "right" and "sight ". The range must be expressed in ascending order.
7. Any single character out of the specified character range in brackets
Type [! X-z] note! Use
For example, t [! A-m] ck searches for "tock" and "tuck", but does not search for "tack" and "tick ".
8. n repeated previous characters or expressions
Type {n} n as a number.
For example, fe {2} d looks for "feed", but not "fed ".
9. At least n previous characters or expressions
Type {n ,}
For example, fe {1,} d searches for "fed" and "feed ".
10, n to m before a character or expression
Type {n, m}
For example, 10 {100} searches for "10", "1000", and ".
11. More than one previous character or expression
Type @
For example, lo @ t searches for "lot" and "loot ".

Note:
1. To search for a character that has been defined as a wildcard, enter "\" before the character. For example, to search for a question mark, enter "\?".
2. You can use the \ n wildcard search expression and replace it with a rearranged expression.
For example, in the "search content" box, type "(Newton) (Christie)", in the "Replace with" box, type "\ 2 \ 1 ", word finds "Newton Christie" and replaces it with "Christie Newton ".

2. Search by code
In simple terms, many special codes can be found in word. For example, we know that there are numbers in the ASCII code for carriage return characters, but they cannot be printed. We can find them in word.

Steps:
1. Click "Search" or "replace" in the "edit" menu.
2. Click "advanced ".
3. Enter the code in the search content box. Perform one of the following operations:
3.1 To select code from the list, click the "special character" button, click the desired character, and then type other text to be searched in the "search content" box.
3.2 type the code in the "search content" box.

Common Code:
1. Paragraph MARK: ^ p or ^ 13 ^ 13? Let's take a look.
This method can be used to merge multiple paragraphs into one segment, or remove extra line breaks between segments.
2. Manual line break: ^ l or ^ 11
The so-called manual line break is a soft carriage return, just to separate the two lines, rather than starting a new section in the format line, so such as the first paragraph indent will not appear, etc.
3. pagination or segmentation: ^ 12
What is a paging character? Look at the first entry in the "insert" menu.
4. image or image (embedded only): ^ g (when the "use wildcard" check box is selected) or ^ 1 (when the "use wildcard" check box is cleared)
Note that only embedded images can be used!
5. ASCII characters: ^ nnn
You know what ^ 13 means...

Source: http://phi.ruc.edu.cn/bbs/viewthread.php? Tid = 16855 & page = 1 & authorid = 4

3.
Recommended link: http://bbs.ylmf.net/forum.php? Mod = viewthread & tid = 1076549.

Frequently used advanced WORD replacement techniques [frequently used, but you don't know]

I am often engaged in WORD formatting because of my work needs. Now I am sending a replacement skill in WORD formatting. This skill can be said to be a batch processing, eliminating the need to delete unnecessary formats one by one.


1.Remove white spaces (blank area)

Operation Method: select the content to be replaced, and press ctrl + H to open the "search and replace" dialog box. Enter [^ W], No loss in replacement.

Explanations and descriptions: ^ w represents all spaces (^ 32), full-width spaces, and uninterruptible spaces (^ s) in the document (entered by Ctrl + Shift + Space) and any combination of tabs (^ t) (input by pressing the Tab key.

2.Delete discontinuous paragraphs

Operation Method: select the content to be replaced, and press ctrl + H to open the "search and replace" dialog box. Input [^ P], Replace [^ P].

Explanations and descriptions: ^ p indicates the paragraph mark, and ^ p indicates two consecutive paragraph marks. This type of text is mostly text copied from web pages. Another trick is to copy the text on a webpage and paste it into a WORD using "selective paste-No format text ", in this way, when a large number of text is not counterfeited as WORD, the copy speed is much faster than the direct paste speed. You can try it on your own.

3.Delete the connection between empty and disconnected rows

Operation Method: select the content to be replaced, press Ctrl + H to open the "search and replace" dialog box, select "use wildcards", and enter [([!. :……?!)]) ^ 13 {1 ,}], Enter [\ 1].

Explanation and Description :([!. :……?!)]) ^ 13 {1,} indicates to search for all paragraphs ending with non-ending periods, colons, Chinese ellipsis, question marks, exclamation marks, and parentheses, and marked with hard carriage returns. Find and delete the hard carriage return (paragraph mark) Mark.

4. Change the period in the number to the decimal point.

Requirement: only the periods in the number are replaced, while the Chinese Punctuation Marks are retained.

Operation Method: select the content to be searched, press Ctrl + H to open the "search and replace" dialog box, select "use wildcard", and enter [([0-9] {1 ,}).([0-9] {1 ,})], Enter [\ 1. \ 2].

5. chemical molecular formula Processing

Requirement:Replace H2O with H2O


Enter the correct molecular formula H2O in the document, select and cut

Operation Method: enter [H2O] in search and [^ c] In replace.


Description: ^ c indicates the content of the Windows clipboard.

6. Automatically Set documents with no outline level


Operation Method: select the content to be replaced, press Ctrl + H, select use wildcard, and enter [[80 or 90,] @,], No input in replacement,HoweverCtrl + H open the "search and replace" dialog box, click "advanced", then "advanced" becomes "General ", in the "format" drop-down menu below, you can see "font", "paragraph", and "style". For example, click "style" to select "Title 1 ".". For example.

Explanation and Description: It indicates that "1," 2 ,"...... The Section for "11," is set as Title 1.

4.
Two instances are attached:

Add numbers between English and Chinese



Use clipboard replacement

Appendix:
^ W Blank
^ P press ENTER
^ P empty row
^ S uninterrupted Space
[1-marker] Any Chinese Character
^ $ Any letter
^ # Any number
^? Any character
[! ^ 1-^ 127] adding symbols to any Chinese Character
[A-zA-Z] Any letter
[A-zA-Z] {1,} connected letters

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.