pystring provides many string processing functions, such as split and strip. You can follow the python method to process Lua strings
Note that the implementation methods and return results are different.
- split
- rsplit
- partition
- rpartition
- splitlines
- strip
- lstrip
- rstrip
- join
- startswith
- endswith
- find
- rfind
- count
- shift
- swapcase
- capitalize
- title
- capwords
- islower
- isupper
- isdigit
- isinteger
- ishex
- isalnum
- istilte
- isfloat
- ljust
- rjust
- center
- zfill
- replace
- expandtabs
- with