test = "lua regex test"
local q = test:find("^(php|lua)") --(php|lua)
some there can help me whit that, it dont works :(
it is only an example, but i dont understand why it nok work, hsall use it in some code i are working one :(
You should read Lua manual ;) It is not regex (regex library is bigger than whole Lua), they call it pattern matching and it's different than regex :-\
ok hehe have i do it in lua ?
test = "lua"
test.find(test|lua|php|java)
I dont understand the lua way, pls help me.
thansk :D
http://www.lua.org/docs.html
http://lua-users.org/wiki/TutorialDirectory