If one has a string like this:
s={"a","b","c","d-e"}
Then string.find(s,"d-e") will return nil.
The pattern I want to find is saved in a variable and it keeps changing, we don't know if the pattern to find has "-"
or not, so to add "%" is not a good option for me.
Anyway to solve this? thanks
s={"a","b","c","d-e"}
Then string.find(s,"d-e") will return nil.
The pattern I want to find is saved in a variable and it keeps changing, we don't know if the pattern to find has "-"
or not, so to add "%" is not a good option for me.
Anyway to solve this? thanks