Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gmatch
for m in strung.gmatch("a", "^a") do print(m) end
... should not print anything.
for m in strung.gmatch("^a", "^a") do print(m) end
... should print "^a".
"^a"
Currently, they print "a" and nothing, respectively.
"a"
The text was updated successfully, but these errors were encountered:
If you don't use round brackets it defaults to (^a) and not ^(a)? This seems like odd behavior on Lua's part.
(^a)
^(a)
Sorry, something went wrong.
Actually, the initial "^" isn't treated as a metacharacter...
Fixed :-)
No branches or pull requests
... should not print anything.
... should print
"^a".Currently, they print
"a"and nothing, respectively.The text was updated successfully, but these errors were encountered: