Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

Lie LR-- Web_Find function and Web_reg_Find function

Shulou Source: shulou.com Published: 2022-06-03 03:35:19 10月27日 Update

Those who have studied LR have been depressed about two functions, namely the Web_Find function and the Web_reg_Find function. What is the difference between these two functions? Today, let's take a closer look at these two functions.

First, let's talk about what they have in common, which is text checkpoints.

Their differences:

Web_Find function:

Function role: in HTML page to find the corresponding content.

Function Usage: The Web_Find function is used to find content in HTML pages, so it is placed after the content with search.

Parameter examples:

web_find("web_find",

"RighOf=Welcome"

"LeftOf=Marshall's ",

"What=wangliang",

LAST);

Parameter explanation:Welcome wangliang Marshall's meaning is to define the left and right boundaries of the search content first

Note: Because it is found in the page, it should be placed after the search page. If the search succeeds, the return value is 0; if the search fails, the return value is 1.

Web_reg_Find function:

Function role: in the HTML original file to find the desired content. More accurate than Web_Find().

Function Usage: Because it looks in the original file, it needs to be inserted before the content to be checked.

Parameter examples:

web_reg_find("Search=jojo",

"SaveCount=name",

LAST);

Parameter explanation: Search the content to be checked,"SaveCount=name", save the number of times found in name.

Note: 1. To use it, first check the "Enable p_w_picpath and text check" option in Prefernce in Run_Time_Setting.

2. If the search succeeds, return value name>0, if it fails, return value name=0. This function can be specific to the total number of searches. I like to use it.

Tags: Function content parameter page two check success that is function file is in explain accurate depressed common ground meaning I like say text checkpoint Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Technology Huawei Xiaomi Apple vpn