1Regex.count(3kaya)           Kaya module reference          Regex.count(3kaya)
2
3
4

NAME

6       Regex::count - Count occurrences of a regular expression in a string.
7

SYNOPSIS

9       Int count( Regex patt, String str )
10

ARGUMENTS

12       patt A compiled regular expression
13
14       str The String to count in
15

DESCRIPTION

17       Count the number of (non-overlapping) matches for patt in str
18        Note  that this function will not give meaningful results for patterns
19       containing ^ or $
20
21
22
23    count(compile("abc"),"abcdefgh"); // 1
24    count(compile("a"),"abcdefebcda"); // 2
25    count(compile("a.[^a]"),"aabbccaabbccaa"); // 2
26

AUTHORS

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

LICENSE

32       The  Kaya  standard  library  is free software; you can redistribute it
33       and/or modify it under the terms  of  the  GNU  Lesser  General  Public
34       License  (version  2.1  or  any later version) as published by the Free
35       Software Foundation.
36
38       Regex.compile (3kaya)
39       Regex.split (3kaya)
40
41
42
43Kaya                             December 2010              Regex.count(3kaya)
Impressum