Regex.match.3kaya

Langue: en

Autres versions - même langue

Version: May 2010 (fedora - 01/12/10)

Section: 3 (Bibliothèques de fonctions)

NAME

Regex::match - Attempt to match a regular expression.

SYNOPSIS

Match match( Regex x, String str )

ARGUMENTS

x A compiled regular expression

str The String to match

DESCRIPTION

Attempt to match a compiled regular expression to a string, returning a Regex.Match(3kaya) object.


 r = compile("s$");
 s1 = "sausages";
 m1 = match(r,s1); // matches(["s"],"sausage","")
 s2 = "a sausage";
 m2 = match(r,s2); // noMatch

str may be a Tainted string, and the strings in the Match object will not be tainted.

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.

Regex.compile(3kaya)

Regex.quickMatch(3kaya)

Regex.quickMatch_1(3kaya)

Builtins.Tainted(3kaya)