Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Lie LR-- Web_Find function and Web_reg_Find function

2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

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.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 257

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report