私は有用性/硬さのために正規表現を好き/嫌いです。(理由はわかりませんが、パターンを作成できません:()
データベースフィールドに次のようなレコードがいくつかあります
[(ip1=192.x.?.100)(id1=125485smds65)(date1=11.02.2011-15:00/15.06.2012-17:30)(text1=Some text that can include all brackets and/or parentheses & any chars etc, like < ( text . } , [ any ) ] { etc.**)][(ip2=x.x.20.?)(num2=1235845)(text2=many other words :))]...
わかりました。次のような値を含む配列を返したいと思います。
$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 :)
かっこ内のデータ数とかっこ数が異なる場合があることがわかります
では、preg_match_all正規表現が上記のデータを収集するための真のパターンは何ですか?