Yes thanks I created a function with another separator using 2 parameter
function only but i think I better create a 3 P macro and do it right way.
After test I will send code.

On Fri, Oct 24, 2014 at 7:33 PM, Stefan Sayer <[email protected]>
wrote:

> John Nash wrote on 10/14/2014 10:12 PM:
> > I need to split a string into array variables (Like "One,two,three" to
> > $var1="One".....)
> > I have seen one DSM module named mod_regex looks like it has to be
> > used but I have not worked much on Regex so unable to figure out if it
> > can be done.
>
> there's so far only a function to split the string on CR (mod_utils):
>  utils.splitStringCR($var [, $dstvar])
>  utils.splitStringCR(val, $dstvar])
>    split a string on newline (carriage return, \n)
>    into an array ($var[0]..$var[n])
>
>    example:
>     sys.popen($myresult="/bin/ls wav/*");
>     utils.splitStringCR($myresult);
>
>
> you can easily add an action that does that on another separator.
> patches welcome!
>
> Best Regards
> Stefan
>
>
_______________________________________________
Sems mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/sems

Reply via email to