Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^2: Regular Expression, Catching Variables

by Marshall (Canon)
on Jun 23, 2009 at 16:54 UTC ( [id://774108]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    use strict;
    ...
    101(ultracentrifuge)
    104-105(crystal growth rooms)
    660(centrifuge, refrig.)
    
  2. or download this
    my @tokens = ($line =~ m/([^,(]+(?:\([^)]*\))?)/g);
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (2)
As of 2024-04-25 22:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found