This is a search engine friendly CGI program that outputs help documents.
The LufDoc (Live User Fed Documentation) comment system will be implemented soon.

PSP Help Doc Indexer System

(Version 1.4.1)


Declaration:

function regexp_match_all(const pattern, str: string; var matches: RegexpResult): longword;

Arguments:

pattern Regular expression pattern
str Input string
matches Handle to store the result entries

Description:

This function performs global (including all fullmask matches) pattern match on string.

Returns:

Number of fullmask entries or 0 on error.

Usage:

if regexp_match_all('/foo/i', s, rr) > 0 then
	begin
		// Working with result
		for i := 0 to regexp_count_all(rr) - 1 do
			begin
				// Working with single entry
				re := regexp_entry(rr, i);
				for j := 0 to regexp_entry_count(re) - 1 do writeln(regexp_entry_item(re, j));
				regexp_free(re);
			end;
	end;
regexp_free_all(rr);

See also:

regexp_match.

PSP Help documents