xHarbour Reference Documentation > Class Reference (textmode) |
Creates a new THtmlIteratorRegEx object.
THtmlIteratorRegEx():new( <oTHtmlNode> ) --> oTHtmlIteratorRegEx
The function returns a THtmlIteratorRegEx object and method :new() initializes it.
The THtmlIteratorRegEx class is derived from the THtmlIterator() class and has the same methods. The only difference is that regular expressions are used to define search criteria for finding a particular HTML node in an HTML tree. The regular expressions are defined once with the :find() method, which searches for the first matching HTML node. Subsequent HTML nodes matching the regular expressions are then searched with the :next() method.
The end of a search is indicated when either :find() or :next() return NIL instead of a THtmlNode object matching the regular expressions.
See also: | THtmlDocument(), THtmlNode(), THtmlIterator(), THtmlIteratorScan() |
Category: | HTML functions , Object functions , xHarbour extensions |
Source: | tip\thtml.prg |
LIB: | xhb.lib |
DLL: | xhbdll.dll |
http://www.xHarbour.com