Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

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

by monsoon (Pilgrim)
on Jul 07, 2012 at 07:53 UTC ( #980457=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

Doesn't match this: "20120704 00:05:53.46;CmdTask(0);EV;FBLdxPreAlignment rtn=0, Yoffset=-4278.25". The more I look at it the more I think the regex for $2 was supposed to match floating point numbers.
  • Comment on Re^2: Problems with formatting the results of my regex

Replies are listed 'Best First'.
Re^3: Problems with formatting the results of my regex
by superwombat (Novice) on Jul 07, 2012 at 08:08 UTC
    Exactly, needs to match the possibility of a floating point number.
Re^3: Problems with formatting the results of my regex
by Marshall (Monsignor) on Jul 09, 2012 at 04:42 UTC
    The ".25" wasn't defined in the input spec, but this is fine addition that makes things more flexible.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://980457]
help
Chatterbox?
[GotToBTru]: Like most Swiss Army Knives, you can cut yourself trying to find the blade you actually want
[GotToBTru]: i am satisfied with the default settings turning the seemingly random formatting into something reliable
[Corion]: GotToBTru: Yeah, I started a quick(ly implemented but slowly running) implementation of a program that would guess the "best" configuration (that is, least amount of changes) from my code, but then found that it stops parsing the source as soon as it ..
[GotToBTru]: sadly, it can't do anything about this
[Corion]: ... encounters sub foo($bar,$baz) {, which is something I like nowadays
[Corion]: GotToBTru: Yeah, that stuff is hard to do away automatically ;)
[GotToBTru]: yeah, you mentioned it could not handle signatures

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (11)
As of 2017-02-27 14:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (387 votes). Check out past polls.