function match(input, pattern)
if input == nil then return false end
--assert(input, "input is nil")
pattern = pattern:gsub("<number>", "([0-9]+)")
pattern = pattern:gsub("<string>", '"([^"]*)"')
return input:match(pattern)
endBegan life as a copy of #139
test run test run with input download show line numbers
Travelled to 12 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
| ID | Author/Program | Comment | Date |
|---|---|---|---|
| 299 | #1000604 (pitcher) | 2015-08-18 00:54:51 | |
| 256 | #1000610 (pitcher) | Edit suggestion: !636 !629 main { static Object androidContext; static String programID; public static void main(String[] args) throws Exception { function match(input, pattern) if input == nil then return false end --assert(input, "input is nil") pattern = pattern:gsub("<number>", "([0-9]+)") pattern = pattern:gsub("<string>", '"([^"]*)"') return input:match(pattern) end }} | 2015-08-18 00:53:10 |
| Recognizer | Recognition Result | Visualize | Recalc |
|---|---|---|---|
| #308 | 243 | [visualize] |