Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: Elegant examples to parse parenthesised strings (Parse::Balanced)

by back-n-black (Initiate)
on May 26, 2010 at 14:36 UTC ( [id://841735]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $str = "05/04/2010 13:09:45 - A - somebody - ( ( my.my id >= 1 ) an
    +d ( is-mother.to code intersects afunc(val1,val2,val3,val4) and ( is-
    +father.to code  intersects bfunc(val1,val2,val3,val4) )";
    
  2. or download this
    my $str = "05/04/2010 13:09:45 - A - somebody - ( is-mother.to code in
    +tersects afunc(val1,val2,val3,val4) )";
    
    ...
              ]
            ];
    String is balanced.
    
  3. or download this
    Result should be
    
    ...
    is-mother.to code intersects afunc(val1,val2,val3,val4)
    is-father.to code intersects bfunc(val1,val2,val3,val4)
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://841735]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2024-04-23 21:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found