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?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Help with regular expression
by Corion (Patriarch) on Oct 10, 2012 at 16:48 UTC | |
by ng (Initiate) on Oct 10, 2012 at 19:28 UTC | |
by Corion (Patriarch) on Oct 10, 2012 at 19:31 UTC | |
Re: Help with regular expression
by choroba (Cardinal) on Oct 10, 2012 at 23:25 UTC | |
by Anonymous Monk on Oct 11, 2012 at 08:42 UTC | |
by Anonymous Monk on Oct 11, 2012 at 12:51 UTC | |
Re: Help with regular expression
by Anonymous Monk on Oct 10, 2012 at 22:29 UTC | |
Re: Help with regular expression
by ELISHEVA (Prior) on Oct 11, 2012 at 13:38 UTC | |
by Anonymous Monk on Oct 11, 2012 at 15:58 UTC | |
by ELISHEVA (Prior) on Oct 11, 2012 at 18:12 UTC | |
by heatblazer (Scribe) on Oct 12, 2012 at 14:29 UTC | |
by ng (Initiate) on Oct 15, 2012 at 13:20 UTC | |
by ng (Initiate) on Oct 15, 2012 at 16:25 UTC | |
Re: Help with regular expression
by choroba (Cardinal) on Oct 11, 2012 at 09:59 UTC | |
Re: Help with regular expression
by Kenosis (Priest) on Oct 10, 2012 at 20:29 UTC | |
by ng (Initiate) on Oct 10, 2012 at 20:47 UTC | |
Re: Help with regular expression
by heatblazer (Scribe) on Oct 11, 2012 at 07:56 UTC | |
by choroba (Cardinal) on Oct 11, 2012 at 08:19 UTC | |
by heatblazer (Scribe) on Oct 12, 2012 at 14:27 UTC | |
Re: Help with regular expression
by ambrus (Abbot) on Oct 11, 2012 at 10:50 UTC |
Back to
Seekers of Perl Wisdom