No matter what i do in a Lua script, i cant get a pattern to include an OR.
I'm out of options here X_X;
There is no way to put an OR into the pattern of a string.find is there?
solo = "http://ggg.cnn.com http://www.cnn.com www.cnn.com monkey-tribble-duck w.cnn.com w ww oog.nomface.com www wwww w|www wW W WW WWW ouote o.ote.com.nom ___ gggg quote q.ote.com.nom.con WWWW WWW. http://www.cnn.com"
luke = "([hHtTpPsSmMaAiIlLoO]+://[%S]*[%w#/])|([wW]+[wW]+[wW]+[\.])"
leia = "[hHtTpPsSmMaAiIlLoO]+://[%S]*[%w#/]|[wW]+[wW]+[wW]+[\.]"
r2d2 = "(([hHtTpPsSmMaAiIlLoO]+://[%S]*[%w#/])|([wW]+[wW]+[wW]+[\.]))"
c3p0 = "([hHtTpPsSmMaAiIlLoO]+://[%S]*[%w#/])*([wW]+[wW]+[wW]+[\.])*([hHtTpPsSmMaAiIlLoO]+://[%S]*[%w#/])"
jaba = "(([hHtTpPsSmMaAiIlLoO]+://[%S]*[%w#/])*([wW]+[wW]+[wW]+[\.])*([hHtTpPsSmMaAiIlLoO]+://[%S]*[%w#/]))"
boba = "[hHtTpPsSmMaAiIlLoO]+://[%S]*[%w#/]*[wW]+[wW]+[wW]+[\.]*[hHtTpPsSmMaAiIlLoO]+://[%S]*[%w#/]"
yoda = string.find(solo, luke) -- fails
yoda = string.find(solo, leia) -- fails
yoda = string.find(solo, r2d2) -- fails
yoda = string.find(solo, c3p0) -- fails
yoda = string.find(solo, jaba) -- fails
yoda = string.find(solo, boba) -- fails
I'm out of options here X_X;
There is no way to put an OR into the pattern of a string.find is there?