Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re: Help with regular expression

by Kenosis (Priest)
on Oct 10, 2012 at 20:29 UTC ( #998315=note: print w/replies, xml ) Need Help??

in reply to Help with regular expression

It may help if you show the exact output you want from your data. Also, what do you mean by "...multiple lines of the following text..."? Is your example one of many records in a file from which you want to extract values?

Replies are listed 'Best First'.
Re^2: Help with regular expression
by ng (Initiate) on Oct 10, 2012 at 20:47 UTC
    Yes, i have multiple records of each of these in a file. (S=( (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)) I want output similar to a tree structure.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://998315]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (10)
As of 2017-03-30 13:31 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (359 votes). Check out past polls.