%% /parse public
set-string clist = "a , b, \"c , d\" , e"
split-string clist with "," to res count tot
start-loop repeat tot use i
read-split i from res to item status st
if-true st not-equal GG_OKAY
break-loop
end-if
pf-out " [%s]", item
end-loop
%%
Copied!
%% /parse-url public
"&"
set-string url ="x=23&y=good&z=hello_world"
"amp;"
split-string url with "&" to url_var count tot
start-loop repeat tot use i
"&"
read-split i from url_var to item
"="
split-string item with "=" to item_var
read-split 1 from item_var to name
read-split 2 from item_var to val
pf-out "Variable %s has value %s\n", name, val
end-loop
%%
Copied!