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

Re^2: Problems with formatting the results of my regex

by monsoon (Pilgrim)
on Jul 07, 2012 at 07:21 UTC ( #980454=note: print w/ replies, xml ) Need Help??


in reply to Re: Problems with formatting the results of my regex
in thread Problems with formatting the results of my regex

How does your regex not match a \r?

$_ = "20120704 00:05:53.46;CmdTask(0);EV;FBLdxPreAlignment rtn=0, Yoff +set=-4278\r"; $tag[0] = "FBLdxPreAlignment"; if (m{([[:digit:]].+?);.+?$tags[0].+?=.+?((-)?[[:digit:]].+?)$}s) +{ printf "%s,%s,,,,,,\n", $1, $2; }
output:
,,,,,,04 00:05:53.46,-4278


Comment on Re^2: Problems with formatting the results of my regex
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (10)
As of 2016-02-10 12:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?





    Results (346 votes), past polls