ForNext
Only Do What Only You Can Do
055. match test
Hyperpolyglot Interpreted Languages: Tcl, Lua, JavaScript, Io より (2012.05.08)
JavaScript
if (s.match(/1999/)) { alert("party!"); }
Lua
if string.match(s, "1999") then print("party!") end