lua-patterns icon indicating copy to clipboard operation
lua-patterns copied to clipboard

Complete the pattern punctuation sets

Open adamnejm opened this issue 3 years ago • 0 comments

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.

adamnejm avatar Feb 21 '22 17:02 adamnejm