End

From Kolmafia
Revision as of 05:15, 22 May 2010 by imported>Bale
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
needs(code_samples);

Function Syntax

int end(matcher pattern )

  • pattern is the regular expression to use

int end(matcher pattern ,int group )

  • pattern is the regular expression to use
  • group is the number of the capturing group

Returns the index after the last character matched by the specified capturing group, or if no group is specified, it returns the index after the last group found.

If the match was successful, but the group did not match anything, then it returns -1.

See Also

start()