Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Re: Parsing

by jynx (Priest)
on Dec 19, 2001 at 13:19 UTC ( #133071=note: print w/ replies, xml ) Need Help??


in reply to Re: Parsing
in thread Splitting and formatting a line


Death to Dot Star!

Your regex will run much faster if you write it instead like so:

if (/([^:]*):([^:]*):([^:]*):([^:]*):([^:]*)/) {
except that it's unnecessarily difficult. Really, just use Ovid's solution or chip's solution.

jynx


Comment on Re: Re: Parsing
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (10)
As of 2015-07-05 19:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (67 votes), past polls