Skip to the content
guardscripts.com Log in

stringarraytonum, bracket string to number list

From the guardscripts.com library.

About this script

A small piece of Lua that turns a string holding a bracketed list into a list of numbers. It was written for the cguard script.

To use it, download the .lua file, put its code in your project and call the convert function below the source. The call shown returns 12,41,24,245 as numbers, with the brackets removed.

Source

After the source, call it like this:

convert("[12,41,24,245]")

stringarraytonum source

More scripts

Related

UpDown moveEnter open> commandsEsc close