######## test-string.az ########
string.split("apple[sep]orange[sep]pear[sep]orange[sep]banana", "[sep]") .. ["apple", "orange", "pear", "orange", "banana"]
"apple[sep]orange[sep]pear[sep]orange[sep]banana".split("[sep]") .. ["apple", "orange", "pear", "orange", "banana"]
string.join(["apple", "orange", "pear", "orange", "banana"], ";") .. apple;orange;pear;orange;banana
["apple", "orange", "pear", "orange", "banana"].join(";") .. apple;orange;pear;orange;banana
{SJISeXg
\Ȃ .. contains 0x5c (\)
|\E .. contains 0x5c (\)
|\E
this is the first line
2nd line
3rd line
4th line
5th line
6th line
this is the first line
2nd line
3rd line
4th line
5th line
6th line
raw mode \n \t \r \\ \"
raw mode \n \t \r \\ \"
raw mode \n \t \r \\ \"
raw mode \n \t \r \\ \"
regular expression: (\w+)\((\w+)(\w+)\)
string concatenation test:  1st 2dn 3rd 4th 5th 6th 7th 8th
{SJISeXg
\Ȃ .. contains 0x5c (\)
|\E .. contains 0x5c (\)
|\E
this is the first line
2nd line
3rd line
4th line
5th line
6th line
this is the first line
2nd line
3rd line
4th line
5th line
6th line
raw mode \n \t \r \\ \'
raw mode \n \t \r \\ \'
raw mode \n \t \r \\ \'
raw mode \n \t \r \\ \'
regular expression: (\w+)\((\w+)(\w+)\)
string concatenation test:  1st 2dn 3rd 4th 5th 6th 7th 8th
math.sqrt * 2 .. 1.41421
math.sin * math.pi .. 1.22461e-16
math.cos * math.pi .. -1
string.find("hello world hello hello", "llo") .. 2
string.find("hello world hello hello", "llo"):rev .. 20
string.find("hello world hello hello", "llo"):list .. [2, 14, 20]
string.find("hello world hello hello", "Llo") .. nil
string.find("hello world hello hello", "Llo"):rev .. nil
string.find("hello world hello hello", "Llo"):list .. []
string.find("hello world hello hello", "Llo"):icase .. 2
string.find("hello world hello hello", "Llo"):rev:icase .. 20
string.find("hello world hello hello", "Llo"):list:icase .. [2, 14, 20]
math.sqrt * 2 .. 1.41421
math.sin * math.pi .. 1.22461e-16
math.cos * math.pi .. -1
"hello world hello hello".find("llo") .. 2
"hello world hello hello".find("llo"):rev .. 20
"hello world hello hello".find("llo"):list .. [2, 14, 20]
"hello world hello hello".find("Llo") .. nil
"hello world hello hello".find("Llo"):rev .. nil
"hello world hello hello".find("Llo"):list .. []
"hello world hello hello".find("Llo"):icase .. 2
"hello world hello hello".find("Llo"):rev:icase .. 20
"hello world hello hello".find("Llo"):list:icase .. [2, 14, 20]
str .. hello world
string.left(str, nil) .. hello world
string.left(str, 5) .. hello
string.right(str, nil) .. hello world
string.right(str, 5) .. world
string.mid(str, nil, nil) .. hello world
string.mid(str, 2, nil) .. llo world
string.mid(str, nil, 5) .. hello
string.mid(str, 2, 3) .. llo
string.replace(str, "ll", "LL") .. heLLo world
string.replace(str, "o", "[O]") .. hell[O] w[O]rld
string.replace(str, "o", "[O]", 0) .. hello world
string.replace(str, "o", "[O]", 1) .. hell[O] world
string.replace(str, "", "*") .. *h*e*l*l*o* *w*o*r*l*d*
string.replace(str, "", "*", 0) .. hello world
string.replace(str, "", "*", 3) .. *h*e*llo world
str .. hello world
str.left(nil) .. hello world
str.left(5) .. hello
str.right(nil) .. hello world
str.right(5) .. world
str.mid(nil, nil) .. hello world
str.mid(2, nil) .. llo world
str.mid(nil, 5) .. hello
str.mid(2, 3) .. llo
str.replace("ll", "LL") .. heLLo world
str.replace("o", "[O]") .. hell[O] w[O]rld
str.replace("o", "[O]", 0) .. hello world
str.replace("o", "[O]", 1) .. hell[O] world
str.replace("", "*") .. *h*e*l*l*o* *w*o*r*l*d*
str.replace("", "*", 0) .. hello world
str.replace("", "*", 3) .. *h*e*llo world
1 2 3 4 5
3 4 2 1 nil
2 3 4 nil nil
1 1 nil nil nil
1 nil nil nil nil
[[1, 0, 0], [2, 3, 0], [[2, 3, 0], [3, 4, 5], [1, 2, 3]]]
