Rechercher une page de manuel
Regex.split.3kaya
Langue: en
Version: May 2010 (fedora - 01/12/10)
Section: 3 (Bibliothèques de fonctions)
NAME
Regex::split - Split a string into substrings.SYNOPSIS
[String] split( Regex pattre, String origstr, Int limit=0, Bool allowempty=false )ARGUMENTS
pattre A compiled regular expression
str The String to split
limit The maximum number of pieces (from the left) to split str into. If this is parameter is omitted or set to zero an unlimited number of pieces will be allowed. Note that if allowempty is false that the empty strings will count towards the limit but will not appear in the returned array.
allowempty If this is true, then consecutive delimeters will be treated as having an empty string between them. If it is false (or omitted) then consecutive delimeters will be treated as one.
DESCRIPTION
Using pattre as a delimeter, split str into substrings.
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.compile(3kaya)
Regex.split_1(3kaya)
Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre