getFindCount: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
No edit summary
(No difference)

Revision as of 03:04, 7 March 2009

getFindCount() Function

Returns the number of times that strfind() was able to match the input string.

Usage

[h: count = getFindCount(id)]

The id is the id value returned by strfind().

Example

[h: id = strfind("this is a test", "(\\S+)\\s+(\\S+)\\s*")]
[r: getFindCount(id)]
Returns 2.