Scroll to navigation

Regex.grep(3kaya) Kaya module reference Regex.grep(3kaya)

NAME

Regex::grep - Search for patterns.

SYNOPSIS

[String] grep( String patt, [String] xs, Bool inverse=false )

ARGUMENTS

patt The pattern string
xs The strings to match
inverse If this is set to true, return only strings not matching the pattern. This parameter is optional and defaults to false.

DESCRIPTION

Searches for patterns and returns the entries in xs which match the given pattern.

AUTHORS

Kaya standard library by Edwin Brady, Chris Morris and others (kaya@kayalang.org). For further information see http://kayalang.org/

LICENSE

The Kaya standard library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (version 2.1 or any later version) as published by the Free Software Foundation.

RELATED

Regex.match (3kaya)
October 2012 Kaya