http://www.perlmonks.org?node_id=998258

ng has asked for the wisdom of the Perl Monks concerning the following question:

I have multiple lines of the following text that i need split and extract data

(S=(SN=ac2.bd) (I1=(IN=s%1)(NM=1) (HL=(HLD=kkk kjkjk)(ST=abdc)(HI=REM SSS)(H_M=9)(HL=72)(EB=0) +(ER=0)(HI=E043-93A-DF0-0AB63E)(PE=aaa)(HN=DEE)(SS=NS)(SED=(APR=(PAD=k +kk)(PN=9905)(HH=llkjk))(DD=(LLL=kkk)))) (ppp=1)(RAW=kkk)(DN=kkk)(RIN=ppp)) (PPP=1) (AA=LLI))

For each SN=ac2.bd, i need to retrieve values of PAD/SED/PPP. How do i split them? Any ideas?