I love/hate the regex because of usefulness/hardness. (I don t why but I can t construct pattern :( )
I have some records in my database field like this
[(ip1=192.x.?100)(id1=125485smds65)(date1=11.02.2011-1 5/15.06.2012-17:30)text1=Some text,其中可包括所有括号和(或)括号;任何果园等等;(案文}、[任何]{......]**) [(ip2=x.x.20.num)(2=12358(文本2=其他词):]
奥克,我希望返回一个具有价值阵列;
。
$result[ip1] = 192.x.?.100;
$result[id1] = 125485smds65;
$result[date1] = 11.02.2011-15:00/15.06.2012-17:30;
$result[text1] = Some text that can include all brackets and/or parentheses & any chars etc, like < ( text . } , [ any ) ] { etc.**;
$result[ip2] = 192.x.?.100;
$result[num2] = 1235845;
$result[text2] = many other words :)
您可以认为,括号内和括号中的数据数目可能有所不同。
因此,在收集上述数据之前,究竟是哪种情况?