Find: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
imported>Bale
Created page with '{{ #vardefine:name|create_matcher}}{{ #vardefine:return_type|matcher}}{{ FunctionPage| name={{#var:name}}| function_category=String Handling Routines| function1={{Function| nam…'
 
imported>Ulti
improving regex "see also" navigation
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{
{{
#vardefine:name|create_matcher}}{{
#vardefine:name|find}}{{
#vardefine:return_type|matcher}}{{
#vardefine:return_type|boolean}}{{


FunctionPage|
FunctionPage|
name={{#var:name}}|
name={{#var:name}}|
function_category=String Handling Routines|


function1={{Function|
function1={{Function|
Line 20: Line 19:
needscode=yes|
needscode=yes|


see_also={{SeeAlso|create_matcher|group|group_count|group_string}}|
}}
}}
[[Category:String Handling Routines]]

Latest revision as of 17:08, 14 October 2014

needs(code_samples);

Function Syntax

boolean find(matcher pattern )

  • pattern is the matcher to search

Finds the next instance of the pattern or returns false if no more matches exist. Note that a single instance of a pattern may contain any number of capturing groups.

See Also

create_matcher() | group() | group_count() | group_string()