当前位置:网站首页>How to delete all the words before or after a symbol in word

How to delete all the words before or after a symbol in word

2022-07-06 07:22:00 Yang Yi

Catalog

One 、 Turn all soft returns into hard returns

Two 、 Delete the symbol and all the following text

3、 ... and 、 Delete the symbol and the preceding text

1. Every line has this symbol

2. Each line does not necessarily have this symbol

Four 、 summary :


Before deleting all the words before or after a symbol, change the soft carriage return in the file into hard carriage return .

One 、 Turn all soft returns into hard returns

First open the edit tag , See whether the paragraph is followed by a hard return or a soft return .

  This is a hard return , There is also a downward arrow ↓  Line break , This is a soft return .

We need to replace soft return with hard return .

Two 、 Delete the symbol and all the following text

Every line has this symbol , Or not every line has this symbol . You can use this method .

  I want to delete Arrow and the content behind the arrow .

 

  If you want to delete ~ Symbols and the following contents , Replace the first character in the search content in the above figure with ~ that will do , Other symbols are the same .

3、 ... and 、 Delete the symbol and the preceding text

1. Every line has this symbol

The right arrow shown in the figure below is the symbol I want to change , Other symbols are the same , Just change the right arrow .

2. Each line does not necessarily have this symbol

If you use 1 Methods ,

  Will turn into :

  That is, delete the lines without this symbol .

Select the text , Insert table , Text to table , The number of columns is set to 1, Check “ Adjust the table according to the window ”, Check “ Paragraph marks ”, Click ok .

then

  result :

  Then convert the table into text : Copy the table , Then only keep the text pasted

Four 、 summary :

1. Turn all soft returns into hard returns : ^l  Replace with ^p

2. Delete the symbol and all the following text :( Symbol )*^13  Replace with   ^13 ; eg: ~*^13    Replace with ^13, Namely the ~ Delete the symbol and the following text .

Every line has this symbol , Or not every line has this symbol . You can use this method .

3. Delete the symbol and all previous words :

1) If every line has this symbol : ^13*( Symbol ) Replace with ^13

2) If not every line has this symbol : Select the text , Insert table , Text to table , The number of columns is set to 1, Check “ Adjust the table according to the window ”, Check “ Paragraph marks ”, Click ok . Then find the content *( Symbol ) Replace with ^13, Finally, delete the table , Copy the form , Then only keep the text pasted .

Reference resources :word How to delete all the text before or after a symbol (baidu.com)

原网站

版权声明
本文为[Yang Yi]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/187/202207060716021671.html