of     1   

Waffloid
#183816636Wednesday, February 17, 2016 11:40 AM GMT

local ok = 'The-Kek/The-Super-Kek' print(ok:find('The-Kek')) output: >nil Why is the output nil? Shouldn't it return 2 integers?
Waffloid
#183816855Wednesday, February 17, 2016 11:52 AM GMT

Bump.
Waffloid
#183817065Wednesday, February 17, 2016 12:04 PM GMT

Bump Up My Post
cheesecake123456
#183817197Wednesday, February 17, 2016 12:10 PM GMT

'Looks for the first match of pattern in string s. If a match is found, then string.find returns the locations (1, 3, etc.) of s where this occurrence starts and ends; otherwise, it returns nil.'
Waffloid
#183817238Wednesday, February 17, 2016 12:12 PM GMT

BUT IT EXISTS LOOK: 'The-Kek/The-Super-Kek' 'The-Kek' BUT, IS RIGHT AT THE BEGINNING YET IT STILL BLOODY RETURNS NIL CAN YOU NOT SEE THIS AM I JUST GOING INSANE WHAT????
Waffloid
#183817255Wednesday, February 17, 2016 12:13 PM GMT

AND WHEN I REMOVE THE - FROM BOTH OF THEM IT WORKS FINE. IS STRING.FIND JUST BROKEN OR SOMETHING OR AM I MISSING SOMETHING IMPORTANT?
cheesecake123456
#183817268Wednesday, February 17, 2016 12:13 PM GMT

It worked for me using a pattern: local ok = 'The-Kek/The-Super-Kek' print(string.find(ok, 'The%pKek'))
Waffloid
#183817285Wednesday, February 17, 2016 12:14 PM GMT

ok thx love u
cheesecake123456
#183817324Wednesday, February 17, 2016 12:16 PM GMT

It's probably because - is used as a string pattern quantifier

    of     1