getFindCount

From RPTools Wiki
Revision as of 20:39, 1 December 2008 by Craig (talk | contribs) (New page: ==Function getFindCount== {{ProposedChange}} Returns the number of times that strfind() was able to match the input string. ===Usage=== <source lang="mtmacro...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Function getFindCount

 Note: This refers to a proposed change that has not been implemented in the main code base yet.

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.