Mercurial Hosting > luan
diff website/src/manual.html.luan @ 1195:9a57f0b16c2b
better String.split
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 26 Feb 2018 19:07:49 -0700 |
parents | 73d754b1889f |
children | 5dbb552075ff |
line wrap: on
line diff
--- a/website/src/manual.html.luan Mon Feb 26 16:29:07 2018 -0700 +++ b/website/src/manual.html.luan Mon Feb 26 19:07:49 2018 -0700 @@ -2494,6 +2494,12 @@ +<h4 heading><a name="String.split" href="#String.match"><code>String.split (s, pattern [, limit])</code></a></h4> + +<p> +Splits <code>s</code> using regex <code>pattern</code> and returns the results. If <code>limit</code> is positive, then only returns at most that many results. If <code>limit</code> is zero, then remove trailing empty results. + + <h4 heading><a name="String.sub" href="#String.sub"><code>String.sub (s, i [, j])</code></a></h4>