lua-patterns
lua-patterns copied to clipboard
Complete the pattern punctuation sets
The set for %p and %P doesn't have stuff like @, ?, <, etc.
You can grab all the punctuation symbols using the following code (credits: Colonel Thirty Two):
for i = 0, 255 do
if string.match(string.char(i), "%p") then
io.write(string.char(i))
end
end
io.write("\n")
Tested on 5.1, 5.2, 5.4, and JIT. Results are the same for each version.