Difference between revisions of "Create matcher"

From Kolmafia
Jump to navigation Jump to search
imported>Bale
imported>Bale
Line 1: Line 1:
creating a new function
 
 
 
{{
 
{{
 
#vardefine:name|create_matcher}}{{
 
#vardefine:name|create_matcher}}{{

Revision as of 07:13, 10 May 2010

needs(code_samples);

Function Syntax

matcher create_matcher(string regex ,string input )

  • regex is the regular expression to use
  • input is the string to search with a regular expression

Creates a matcher from a pattern and input string.