Reset

From Kolmafia
Jump to navigation Jump to search
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.