Matchall(): Difference between revisions
Jump to navigation
Jump to search
Ihavenomouth (talk | contribs) New page: Category:Functions {{Function|matchall(<string>,<pattern>[,<delim>])}} This function works identically to the match() function, save that it returns all matches, not just the first: ... |
(No difference)
|
Latest revision as of 22:45, 25 November 2010
matchall(<string>,<pattern>[,<delim>])
This function works identically to the match() function, save that it returns all matches, not just the first: It returns the index numbers of all words in the list <string> which match <pattern>.
Example
> say matchall(This is a test of a test,test)
You say, "4 7"
> say matchall(This is testing a test,tes*)
You say, "3 5"