Mercurial Hosting > luan
diff 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 |
line wrap: on
line diff
--- a/website/src/manual.html.luan Mon Jan 18 06:42:50 2016 -0700 +++ b/website/src/manual.html.luan Mon Jan 18 23:07:52 2016 -0700 @@ -2550,8 +2550,12 @@ <h4 heading><a name="String.matches"><code>String.matches (s, pattern)</code></a></h4> <p> -Returns a boolean indicating whether the entire string <code>s</code> matches <code>pattern</code>. - +Returns a boolean indicating whether the <code>pattern</code> can be found in string <code>s</code>. +This function is equivalent to + +<pre> + return String.match(s,pattern) ~= nil +</pre> <h4 heading><a name="String.rep"><code>String.rep (s, n [, sep])</code></a></h4>