Mercurial Hosting > luan
diff website/src/manual.html.luan @ 1881:c7c7d62f8c62
swing
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 07 Apr 2025 21:14:53 -0600 |
parents | 50e570b598b2 |
children | f8ca4a147ac9 |
line wrap: on
line diff
--- a/website/src/manual.html.luan Sun Apr 06 19:20:52 2025 -0600 +++ b/website/src/manual.html.luan Mon Apr 07 21:14:53 2025 -0600 @@ -2585,19 +2585,29 @@ <p> Looks for the first substring <code>s2</code> in the string <code>s</code>. -If it finds a match, then <code>find</code> returns the indices of <code>s</code> -where this occurrence starts and ends; +If it finds a match, then <code>find</code> returns the index of <code>s</code> +where this occurrence starts; otherwise, it returns <b>nil</b>. A third, optional numerical argument <code>init</code> specifies where to start the search; -its default value is 1 and can be negative. -</p> - -<p> -If the pattern has captures, -then in a successful match -the captured values are also returned, -after the two indices. +its default value is 1 and can be negative. +</p> +<% + end + } + ["String.find_reverse"] = { + title = "String.find_reverse (s, s2 [, init])" + content = function() +%> +<p> +Looks for the last substring +<code>s2</code> in the string <code>s</code>. +If it finds a match, then <code>find</code> returns the index of <code>s</code> +where this occurrence starts; +otherwise, it returns <b>nil</b>. +A third, optional numerical argument <code>init</code> specifies +where to start the search; +its default value is -1. </p> <% end