Difference between pages "File:Lesson8 Hunter.png" and "Create matcher"

From Kolmafia
(Difference between pages)
Jump to navigation Jump to search
imported>Bale
 
imported>Bale
 
Line 1: Line 1:
 +
{{
 +
#vardefine:name|create_matcher}}{{
 +
#vardefine:return_type|matcher}}{{
  
 +
FunctionPage|
 +
name={{#var:name}}|
 +
function_category=String Handling Routines|
 +
 +
function1={{Function|
 +
name={{#var:name}}|
 +
aggregate={{#var:aggregate}}|
 +
return_type={{#var:return_type}}|
 +
return_also={{#var:return_also}}|
 +
parameter1={{Param|string|regex}}|
 +
p1desc={{pspan|regex}} is the regular expression to use|
 +
parameter2={{Param|string|input}}|
 +
p2desc={{pspan|input}} is the string to search with a regular expression|
 +
}}|
 +
 +
function_description=Creates a matcher from a pattern and input string.|
 +
 +
needscode=yes|
 +
 +
}}

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.


File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current23:55, 9 November 2020Thumbnail for version as of 23:55, 9 November 2020349 × 236 (14 KB)Maintenance script (talk | contribs)

The following page uses this file:

Metadata