Thank you, that's even more easier then the script I was going to use/* ** Usage: ** string_extract(str,sep,index) ** ** Arguments: ** str string of elements ** sep character or string seperating the elements ** index element to return, {0..n-1} ** ** Returns: ** the element at the given index within a given string of elements ** ** Example: ** string_extract("cat,dog,mouse",",",1) == "dog" ** ** GMLscripts.com */ { var str,sep,ind,len; str = argument0; sep = argument1; ind = argument2; len = string_length(sep)-1; repeat (ind) str = string_delete(str,1,string_pos(sep,str)+len); str = string_delete(str,string_pos(sep,str),string_length(str)); return str; }
It doesnt split into arrays, but it's close enough and does exactly what you want
Close thread



Find content
Male
