fork download
#!/bin/bash

sed -E 's/^(st=([^&]*))?&?(c=([^&]*))?&?(t=([^&]*))?&?(k=([^&]*))? HTTP$/\2,\4,\6,\8/'
Success #stdin #stdout 0s 5072KB
stdin
st=expand&c=22&t=button&k=fun HTTP
c=22&t=button&k=fun HTTP
st=expand&c=22&t=party&k=fun HTTP
st=expand&c=22&k=fun HTTP
st=expand HTTP
 HTTP
stdout
expand,22,button,fun
,22,button,fun
expand,22,party,fun
expand,22,,fun
expand,,,
,,,