Reset

From Kolmafia
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
needs(code_samples);

Function Syntax

matcher reset(matcher pattern )

  • pattern is the regular expression to use

matcher reset(matcher pattern ,string input )

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

Resets matcher to search from beginning of string. If there is an input parameter, then that parameter is the new string to search, otherwise it uses the original input string.