i have text in php file like pakistan[_country]http://www.thiscuss.com/country/pakistan/Urdu Poetry/asddasadsdas dds d da d.htm[topic-title-url]http://www.thiscuss.com/country/pakistan/Urdu Poetry/dsa das lskdjdsal;ksj; lksd; sjd;slkjdsa; kjd.htmAqwal E Zareen[top-cat]Urdu Poetry[top-cat]Aqwal E Zareen[top-cat]india[_country]http://www.thiscuss.com/country/pakistan/Urdu Poetry/asddasadsdas dds d da d.htm[topic-title-url]http://www.thiscuss.com/country/pakistan/Urdu Poetry/dsa das lskdjdsal;ksj; lksd; sjd;slkjdsa; kjd.htmAqwal E Zareen[top-cat]Urdu Poetry[top-cat]Aqwal E Zareen[top-cat]) i already get this data in javascript page now i want all countries like (pakistan[_country] (only contry name not [_country] i add this for split)) in one variable and next stup all url in one variable who in pakistan like ([url]http://www.thiscuss.com/country/pakistan/Urdu[/url] Poetry/asddasadsdas dds d da d.htm[topic-title-url] (only url name not [topic-title-url] i add this for split)) and next all the top categories who in pakistan like (Urdu Poetry[top-cat] (only top categories not [top-cat] i add this for split)) Code (markup): same as next country then all is complate i want this data in page index.php Please help me and Thanx in advance