comparison 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
comparison
equal deleted inserted replaced
1718:5603ee8e2a71 1719:2f3a8f16f583
3027 This function is equivalent to 3027 This function is equivalent to
3028 </p> 3028 </p>
3029 <pre> 3029 <pre>
3030 return regex.match(s) ~= nil 3030 return regex.match(s) ~= nil
3031 </pre> 3031 </pre>
3032 <%
3033 end
3034 }
3035 ["regex.set"] = {
3036 title = "<code>regex.set (pattern)</code>"
3037 content = function()
3038 %>
3039 <p>
3040 Changes the regex pattern to <code>pattern</code>.
3041 </p>
3042 <%
3043 end
3044 }
3045 ["regex.split"] = {
3046 title = "<code>regex.split (s [, limit])</code>"
3047 content = function()
3048 %>
3049 <p>
3050 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.
3051 </p>
3032 <% 3052 <%
3033 end 3053 end
3034 } 3054 }
3035 } 3055 }
3036 } 3056 }