Created
December 17, 2015 09:48
-
-
Save tapir/a93534476565f2bdc1fd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
str = "testtesttest<!--m-->testtesttest" | |
local s, e = string.find(str, "<!--", 0) | |
print(s, e) | |
local s, e = string.find(str, "<!--m", 0) | |
print(s, e) | |
-- Output: | |
-- 13, 15 | |
-- nil, nil |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment