Hii , im having a string which needs to be divided on the basis of key
$str =" [India]
Captain1 = Dhoni
Batsman1 = Sachin
Bowler1 = Zaheer
[Aussie]
Captain = Ponting
Batsman = Clarke
Bowler = Warne
[Aussie]
Captain = Hussey
Batsman = Waugh
Bowler = Mcgrath";
this is my string now all the Aussie deatils needs to be in separate array or hash and same with India details
waiting for the reply Thanks in advance