Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

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

by back-n-black (Initiate)
on May 26, 2010 at 14:36 UTC ( #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
Node Status?
node history
Node Type: note [id://841735]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (4)
As of 2018-01-18 00:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How did you see in the new year?










    Results (206 votes). Check out past polls.

    Notices?