Mercurial Hosting > luan
comparison website/src/manual.html.luan @ 629:35dde32c02ab 0.15
change String.matches()
| author | Franklin Schmidt <fschmidt@gmail.com> |
|---|---|
| date | Mon, 18 Jan 2016 23:07:52 -0700 |
| parents | 53a50c70c5e2 |
| children | c4216a583de4 |
comparison
equal
deleted
inserted
replaced
| 628:6510de302f95 | 629:35dde32c02ab |
|---|---|
| 2548 its default value is 1 and can be negative. | 2548 its default value is 1 and can be negative. |
| 2549 | 2549 |
| 2550 | 2550 |
| 2551 <h4 heading><a name="String.matches"><code>String.matches (s, pattern)</code></a></h4> | 2551 <h4 heading><a name="String.matches"><code>String.matches (s, pattern)</code></a></h4> |
| 2552 <p> | 2552 <p> |
| 2553 Returns a boolean indicating whether the entire string <code>s</code> matches <code>pattern</code>. | 2553 Returns a boolean indicating whether the <code>pattern</code> can be found in string <code>s</code>. |
| 2554 | 2554 This function is equivalent to |
| 2555 | |
| 2556 <pre> | |
| 2557 return String.match(s,pattern) ~= nil | |
| 2558 </pre> | |
| 2555 | 2559 |
| 2556 | 2560 |
| 2557 <h4 heading><a name="String.rep"><code>String.rep (s, n [, sep])</code></a></h4> | 2561 <h4 heading><a name="String.rep"><code>String.rep (s, n [, sep])</code></a></h4> |
| 2558 <p> | 2562 <p> |
| 2559 Returns a string that is the concatenation of <code>n</code> copies of | 2563 Returns a string that is the concatenation of <code>n</code> copies of |
