Create matcher: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
imported>Bale
Created page with 'creating a new function {{ #vardefine:name|create_matcher}}{{ #vardefine:return_type|matcher}}{{ FunctionPage| name={{#var:name}}| function_category=XXXXXXXXXX| function1={{Fu…'
 
imported>Bale
No edit summary
Line 7: Line 7:
FunctionPage|
FunctionPage|
name={{#var:name}}|
name={{#var:name}}|
function_category=XXXXXXXXXX|
function_category=String Handling Routines|


function1={{Function|
function1={{Function|

Revision as of 07:13, 10 May 2010

creating a new function


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.