Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^4: How do i extract 3 variables from each line in a file, and print them to a new file

by bofh_of_oz (Hermit)
on Jul 08, 2005 at 16:38 UTC ( #473491=note: print w/ replies, xml ) Need Help??


in reply to Re^3: How do i extract 3 variables from each line in a file, and print them to a new file
in thread How do i extract 3 variables from each line in a file, and print them to a new file

I realized that and updated one works :)

And in the solution above, last \D+ can stay \D+ instead of \D* because "ms" is two letters, and \D+ gets at least one so it also matches two but not matches zero occurrences (as opposed to \D*, which does)

--------------------------------
An idea is not responsible for the people who believe in it...


Comment on Re^4: How do i extract 3 variables from each line in a file, and print them to a new file
Re^5: How do i extract 3 variables from each line in a file, and print them to a new file
by davidrw (Prior) on Jul 08, 2005 at 16:43 UTC
    right, but that solution won't match a line that ends with "123ms456ms789" .. (if you're strictly following OP's 'match 3 numbers' requirement and not using the ":ms" formatting at all)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (15)
As of 2014-07-10 17:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (213 votes), past polls