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

AUTHORS

Kaya standard library by Edwin Brady, Chris Morris and others ([email protected]). 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.compile (3kaya)

Regex.quickMatch (3kaya)

Regex.quickMatch_1 (3kaya)