Mercurial Hosting > luan
comparison 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 |
comparison
equal
deleted
inserted
replaced
1194:bd0420fb3dd0 | 1195:9a57f0b16c2b |
---|---|
2492 <p> | 2492 <p> |
2493 Returns a string that is the string <code>s</code> reversed. | 2493 Returns a string that is the string <code>s</code> reversed. |
2494 | 2494 |
2495 | 2495 |
2496 | 2496 |
2497 <h4 heading><a name="String.split" href="#String.match"><code>String.split (s, pattern [, limit])</code></a></h4> | |
2498 | |
2499 <p> | |
2500 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. | |
2501 | |
2502 | |
2497 | 2503 |
2498 <h4 heading><a name="String.sub" href="#String.sub"><code>String.sub (s, i [, j])</code></a></h4> | 2504 <h4 heading><a name="String.sub" href="#String.sub"><code>String.sub (s, i [, j])</code></a></h4> |
2499 | 2505 |
2500 <p> | 2506 <p> |
2501 Returns the substring of <code>s</code> that | 2507 Returns the substring of <code>s</code> that |