Download components and test Source: Click to download
Technical point: You can take a part of the fixed string, or you can intercept a page. Installation method: After downloading the above file package, after decompression, double-click REG.BAT to register the component. Then Copy the Test1.asp, Test2.asp, Test3.asp to your IIS virtual directory. Then browse through the browser (the specific IIS configuration, etc.) The following is described below: getURL (URL) method The method is to return a web page. The parameter is only one. Let's take a look at the example Test1.asp:
<% DIM TEST, URLSET TEST = Server.createObject ("gznets.echars") URL = "http://www.gznets.com/error.html" response.write test.geturl (URL) set test = Nothing%>
The above example will return http://www.gznets.com/error.html page content
There are three ways for the Manage method management, and a series of parameters must be picked up before calling the Manage method.
Method 1: Returns the content between the flag 1 and the flag 2, and includes the flag 1 and the flag 2 itself. For example, return the content between
, including the flag
parameter:
InputStr is incorporated into the intercepted string (the string can be used by the web page that is just returned) INPUTTAG1 incoming flag 1 INPUTTAG2 Input Sign 2 INPUTTYPE Incoming mode 0 OUTPUTSTR output The last intercepted string
Example Test2.asp: <% DIM TEST, STRSET TEST = Server.createObject ("gznets.echars") str = "This is the
Test TD>
Test TD>
Test TD> TR > table> Test "Test.InputStr = strTest.Inputtag1 ="
" set test = not%> mode two function: return logo 1 The content between the flag 2, but does not include the flag 1 and the flag 2 itself. For example, return the content between
, but does not include the flag
parameters:
InputStr is incorporated into the intercepted string (the string can be returned by the web page that is just returned) INPUTTAG1 incoming flag 2 INPUTTAG2 Input Sign 2 INPUTTYPE Introduction Section 1 (Note that the incoming method here must be changed 1) OutputStr Output The last intercepted string example can modify Test2.asp yourself, change the InputType inside to 1 to see the effect ~~~: Way three function: It is difficult to understand this function. We will explain it through some examples. , For example, string str = "This is the
Test TD>
Test TD>
Test TD> TD> TABLE> Test", we can find "
" Because "
" is only one (of course, other unique logo), then find "
", "<" before "
". Then set the tail mark. We can find " TR>", then find ">" ">" in " TR>". This first and tail position is determined. Parameters: InputStr is incorporated into the intercepted string (the string can be returned by the web page) INPUTTAG1 The incoming mark 1, for example, "
" INPUTPOS1 is sent to the right search or to the left search. There are two values: indicate the right - indicate the reference sign of the left INPUTTAG1TAG to the flag 1. Just want to Right to the left search. For example, "<" INPUTNUM1 passed the right of the right or left side of the search flag 1 InputTag1 Tag INPUTTAG2 Input, for example, " TR>" INPUTPOS2 is searching to right. Search to the left. There are two values: indicate the right - indicate the reference flag of the left INPUTTAG2TAG passage flag 1. That is to search to the left search. For example, ">" inputnum2 incompagination sign 2 The first or left side of the first INPUTTAG2TAG INPUTTYPE Input Section 2 (Note that the incoming method here must be changed to 21) OutputStr output last intercepted string example Test3.asp: Purpose: We will remove blue ideals (WWW .boeidea.com) About Site | Advertising Services | Contact Webmaster | Copyright Privacy | Link | Contribution Hotline | Site Map "Content <% Dim Test, Urlset Test = Server.createObject (" gznets.echars ") URL = "http://www.blueidea.com /index.asp"test.inputStr=test.geturl (URL) Test.inputTAG1= "About site" Test.inputnum1 = 1 "indicates that only one test.inputpos1 =" - "is to search to the left search Test.inputTag1Tag = "
Because I am very small, this article and this component are very rushed, it is definitely in short or imperfect, I hope all netizens pointed. Very thank you