Module talk:Sandbox

From PKC
Revision as of 06:23, 10 January 2022 by Benkoo (talk | contribs) (Created page with "{{#invoke:Sandbox|byte}} {{#invoke:Sandbox|char}} {{#invoke:Sandbox|find}} {{#invoke:Sandbox|format}} {{#invoke:Sandbox|gmatch}} {{#invoke:Sandbox|gsub}} {{#invoke:Sandbox|len...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
byte
string.byte('A') is 65
char
string.char(65) is A
find
string.find('that', 'at') is 3
format
string.format('%.2f', 0) is 0.00
gmatch
This-is-a-test-
gsub
string.gsub('This is a test', '%s', '-') is This-is-a-test
len
string.len('len') is 3
lower
string.lower('LOWER') is lower
match
string.match('This is a test!', '.', -1) is !
rep
string.rep('*', 5) is *****
reverse
string.reverse('reverse') is esrever
sub
string.sub('that', 2, 3) is ha
upper
string.upper('upper') is UPPER