Hello GeertDD,
Thank you for your answer. Thats a very nice Regex, where i learned how can is use aliases in regex. (One way closer to the Finish?!?!?)
But, well, i get this:
Array
(
[0] => /commandtype -command "param1" "param2" "param3 mybe with whitespaces"
[commandtype] => commandtype
[1] => commandtype
[command] => -command
[2] => -command
[params] => "param1" "param2" "param3 mybe with whitespaces"
[3] => "param1" "param2" "param3 mybe with whitespaces"
)
No i have the same Problem like my regex. My (and your) regex is close to my destination. But the params all in one string. But i want the params in an extra array point, even param, in even arraypoint. Well, im so sorry. I think i don't have explained my Problem very well at my First Question... (and mybe at the second zo)
My Destination is an array like this:
Array
(
[0] => /commandtype -command "param1" "param2" "param3 mybe with whitespaces"
[commandtype] => commandtype
[1] => commandtype
[command] => -command
[2] => -command
[params] => array(
[0] => "param1"
[1] => "param2"
[2] => "param3 mybe with whitespaces"
)
[3] => array(
[0] => "param1"
[1] => "param2"
[2] => "param3 mybe with whitespaces"
)
)
Well, i don't know it, but, is it possible? and when it is, how?
Thank you all till now for your answers and your patience.
Greetz Marcel