Two strokes to pull out limited text on the web

  
Sometimes when we browse the Internet, we find that the text on some pages cannot be copied. No matter whether you use mouse selection, shortcut key copy, right-click menu command, etc., there is no result. The following system home teaches you two tricks to make it easy for you to pull out restricted text on the webpage. 360 IE kernel browser editing method This is a relatively simple operation method, which is realized by a special function —— webpage editing mode of the 360 ​​security browser 5.x version. The 360 ​​Secure Browser uses the Google kernel in versions later than 6.0 and is no longer included. Use 360 ​​Secure Browser 5.x to open a restricted web page. When you can't choose to copy web content with mouse selection or keyboard hotkey, click the browser menu command “View →Enable Edit Mode”, At this time, the web page becomes optional, and you can choose to copy and paste the content (Figure 1). EmEditor source code filtering If you use the 360 ​​Secure Browser 6.X version or other browsers, the software does not provide the web page editing mode function, what should I do? We can use a common feature provided by most browsers —— web code view, combined with the powerful replacement function of word processing software EmEditor to solve the problem. Let's take a webpage as an example (as shown in Figure 2). Suppose this is a webpage with limited content copying. You can get the code content shown in Figure 3 by "view → webpage source code", as can be seen from the figure. The content we want is also in it, but there are a lot of code that is useless to us. Below we will filter out these useless code through the replacement function of EmEditor. First open the code file with EmEditor, delete the useless code at the beginning of the file, then use the Ctrl+H hotkey to start the Find and Replace window of EmEditor, enter “<p> ” in the "Find” box, keep “ Replace with ” nothing in the box, click the “replace all” button. Then use the same method to replace the lyrics at the end of the lyrics with an empty string without text, so that you can get pure lyrics content (Figure 4). Tip: The above example is relatively simple. We did not select the regular expression option to complete the batch replacement of useless code. And many times, the webpage code we get is more complicated, and the simple search and replacement can't complete the replacement task. For more complex webpage code, EmEditor can be used to construct regular expressions to complete the filtering and replacement of webpage code. The regular expression construction case has been introduced many times in the office software section of the magazine. You can refer to it. This article comes from [System Home] www.xp85.com
Copyright © Windows knowledge All Rights Reserved