Home >Software Tutorial >Office Software >Replace the text in the document 200406010534309393238

Replace the text in the document 200406010534309393238

WBOY
WBOYforward
2024-01-14 08:45:201222browse

word replacement 20040601 053 43 09 39 32 38 27

First of all, we must clearly distinguish the categories of spaces. One is full-width spaces with a width such as " ", and the other is half-width spaces with a width such as " ". Pay attention and you can see the difference. I attached a picture to illustrate the difference between full-width and half-width.

The first guess is that you want to delete all spaces (please distinguish the full and half width by yourself), refer to the picture. Enter a space in the search field, enter nothing in the next box, and click Replace All. Don’t worry, Replace All will automatically replace all spaces. No matter how many words are next to each other or how many words are separated. The default meaning of this replacement is to replace the spaces with nothing, which is referred to as deletion.

The second guess is that you want to replace spaces with a certain symbol, refer to the picture. Enter a space in the search column, and then enter "," in the next box. In the same way, all spaces will become commas. If there are three spaces next to each other, it will be three commas. Of course, pay attention to all half-widths.

The third guess is that your next document should have more than N lines, or one line, empty between paragraphs. Please refer to the picture for this replacement. Enter a "^p" in the search column (you can directly copy mine without quotation marks), then enter nothing in the next box, and then replace them all, you will find that it becomes a mess and there is no line break.

Okay, what if you want to keep a reasonable line from paragraph to paragraph? This is a trick. Enter two words in the search, namely "^p^p" (you can copy mine directly without quotation marks), then enter one "^p" in the next box, and then replace them all. Note that you need to click here several times. , until the replacement number prompt becomes 1 or 0. The principle is this. Suppose there are 6 blank lines connected together. After the first replacement, there will be 3 spaces left. After the next replacement, there will be 2 spaces left. Then if you execute it again, there will be only one space left. So there are more The target is achieved in several operations.

Similarly, if you want to keep only one space, please try. If you have any questions, please leave a message to me.

How to replace several spaces in word

First of all, we must clearly distinguish the categories of spaces. One is full-width spaces with a width such as " ", and the other is half-width spaces with a width such as " ". Pay attention and you can see the difference. I attached a picture to illustrate the difference between full-width and half-width.

The first guess is that you want to delete all spaces (please distinguish the full and half width by yourself), refer to the picture. Enter a space in the search field, enter nothing in the next box, and click Replace All. Don’t worry, Replace All will automatically replace all spaces. No matter how many words are next to each other or how many words are separated. The default meaning of this replacement is to replace the spaces with nothing, which is referred to as deletion.

The second guess is that you want to replace spaces with a certain symbol, refer to the picture. Enter a space in the search column, and then enter "," in the next box. In the same way, all spaces will become commas. If there are three spaces next to each other, it will be three commas. Of course, pay attention to all half-widths.

The third guess is that your next document should have more than N lines, or one line, empty between paragraphs. Please refer to the picture for this replacement. Enter a "^p" in the search column (you can directly copy mine without quotation marks), then enter nothing in the next box, and then replace them all, you will find that it becomes a mess and there is no line break.

Okay, what if you want to keep a reasonable line from paragraph to paragraph? This is a trick. Enter two words in the search, namely "^p^p" (you can copy mine directly without quotation marks), then enter one "^p" in the next box, and then replace them all. Note that you need to click here several times. , until the replacement number prompt becomes 1 or 0. The principle is this. Suppose there are 6 blank lines connected together. After the first replacement, there will be 3 spaces left. After the next replacement, there will be 2 spaces left. Then if you execute it again, there will be only one space left. So there are more The target is achieved in several operations.

Similarly, if you want to keep only one space, please try. If you have any questions, please leave a message to me.

2010.12.10 0:20

The above is the detailed content of Replace the text in the document 200406010534309393238. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:docexcel.net. If there is any infringement, please contact admin@php.cn delete