diff website/src/manual.html.luan @ 1719:2f3a8f16f583

add regex.split
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 25 Jul 2022 14:31:48 -0600
parents 5603ee8e2a71
children 5c69d2e8bd75
line wrap: on
line diff
--- a/website/src/manual.html.luan	Mon Jul 25 11:32:05 2022 -0600
+++ b/website/src/manual.html.luan	Mon Jul 25 14:31:48 2022 -0600
@@ -3032,6 +3032,26 @@
 <%
 						end
 					}
+					["regex.set"] = {
+						title = "<code>regex.set (pattern)</code>"
+						content = function()
+%>
+<p>
+Changes the regex pattern to <code>pattern</code>.
+</p>
+<%
+						end
+					}
+					["regex.split"] = {
+						title = "<code>regex.split (s [, limit])</code>"
+						content = function()
+%>
+<p>
+Splits <code>s</code> using the regex 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.
+</p>
+<%
+						end
+					}
 				}
 			}
 			binary_lib = {