String processing is one of the basic features of the programming language, and the string processing function of the scripting language is not weak.
The following script file is an example of some string processing
#scp
Definition: string, string1, "123456ABCDEFG"
Definition: String, string2, "ABC"
Definition: String, string3
Definitions: integers, length,0
Definitions: integers, pos,0
Take size: string, string2,length
Find: Strings, String1,string2,pos
Display: Length
Display: POS
Fetch SUBSTRING: string3,string1,pos,length
Display: String3
Convert: string3, uppercase
Display: String3
Conversion: string3, lowercase
Display: String3
Comparison: Strings, String2,string3
Capture: RET
If: ret==1, display: string equality
Otherwise: Display: strings are not equal
Convert: string3, invert
Display: String3
#分割字符串, generate a Table object with a list of split strings in the Table object
Definition: String, String4, "abc;123;456;789"
Definition: String, String5, ";"
Split: String, String4,string5,table1
Display: table1
Wait: User input, string1
interpreter engine Github Https://github.com/zhaoliangcn/LScript
L scripting language String processing