Gets the text from the page in the corresponding of regular expression. Acceptable only inside the loadpage.
var = getregexp(pattern, [options = dict()]);
|pattern||Regular expression pattern.|
|options||Parameters dictionary. May contain the following elements:
Returned value: var is an array.
If you need to get the text from the arbitrary string, use the function regexp.
Example 1. Lets suppose that there is html-page with the address http://test.com/test.html, containing the following code:
<html> <body> <a href="http://test.com/1.html">one</a> <a href="http://test.com/2.html">two</a> <a href="http://test.com/3.html">three</a> </body> </html>
We will get all <a> by means of regular expression: