Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Regex problem

by DamnDirtyApe (Curate)
on Jul 04, 2002 at 15:14 UTC ( [id://179476]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #! /usr/bin/perl
    
    ...
        /([[:alnum:]]+)=([[:digit:]]{1,3})(.*)$/ ;
        printf "[%s] [%s] [%s]\n", $1, $2, $3 ;
    }
    
  2. or download this
    [foo] [123] [ sdjflsdfjklsfj  ]
    [bar] [42] [ fkjfjklsfjs]
    [zoot] [23] [ ff   ]
    [nooka] [9] [ ]
    
  3. or download this
    #! /usr/bin/perl
    
    ...
        /^([^=]+)=([[:digit:]]{1,3})(.*)$/ ;
        printf "[%s] [%s] [%s]\n", $1, $2, $3 ;
    }
    
  4. or download this
    [fdjsflsdfjk foo] [123] [ sdjflsdfjklsfj  ]
    [sdfhsdfsd  bar] [42] [ fkjfjklsfjs]
    [zoot] [23] [ ff   ]
    [              nooka] [9] [ ]
    

Log In?
Username:
Password:

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

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

    No recent polls found