|
The ‘-‘ dash character is a magical character, so it tries to match a pattern. Lookup string.find in the manual, it has a parameter called ‘plain’ that will disable pattern matching Thijs From: lua-l-bounces@lists.lua.org [mailto:lua-l-bounces@lists.lua.org]
On Behalf Of Austin Einter Hi All I am trying to find the location of a sub string in main string.
The sub string is "Max-Forwards" I am using string.find api to find the location of a substring. Looks worhen I take substring as "Forwards" it works. When I take substring as Max-Forward string.find returns nil Anybody faced this issue
|