Mercurial Hosting > luan
comparison src/luan/modules/Boot.luan @ 1792:a5f62fe28b3e
regex.pattern
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 26 Dec 2023 20:57:19 -0700 |
parents | 78cedcd6e1a4 |
children |
comparison
equal
deleted
inserted
replaced
1791:f8f5c51f5b36 | 1792:a5f62fe28b3e |
---|---|
50 | 50 |
51 | 51 |
52 local function regex(pattern) | 52 local function regex(pattern) |
53 local regex = RegexLuan.new(pattern) | 53 local regex = RegexLuan.new(pattern) |
54 return { | 54 return { |
55 pattern = pattern | |
55 java = regex | 56 java = regex |
56 find = regex.find | 57 find = regex.find |
57 gmatch = regex.gmatch | 58 gmatch = regex.gmatch |
58 gsub = regex.gsub | 59 gsub = regex.gsub |
59 match = regex.match | 60 match = regex.match |