Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re^2: Stuck in komplexer regex, at least for me

by ultibuzz (Monk)
on Mar 27, 2007 at 06:34 UTC ( #606711=note: print w/replies, xml ) Need Help??

in reply to Re: Stuck in komplexer regex, at least for me
in thread Stuck in komplexer regex, at least for me

we get 12 digit numbers from another firm these numbers can vary from 4 -12 digits and are fileld up with 0
the problem is we get an letter how they fill up the numbers but they miss several possibilitys so i get the problem here decoding this 12 digit numbers to remove the right 0 and not 0 that are part of the digit.

the explanation was 2 sentencis wich dosnt really help for anything ^^
and we are not in the position to force a change in their process then we woud get these numbers in paper form so we need to do workarounds to get the right numbers, or atleast not many failurs :D

kd ultibuzz

  • Comment on Re^2: Stuck in komplexer regex, at least for me

Replies are listed 'Best First'.
Re^3: Stuck in komplexer regex, at least for me
by xorl (Deacon) on Mar 28, 2007 at 20:39 UTC
    I feel the need to ask, might it be easier to convert your numbers to the other firm's numbers? Or maybe not try to convert anyone's numbers, but use both yours and theirs and match them up using a database or something? Maybe if I understood how and why they seem to add 0 in very odd places, it would be easier to figure out how to deal with this. I'm not a regex person, so this is my stab at this: I'm sure there is a serious performance hit for not using a regex.

      this conversion is not possible,woud be great ;)
      and they are unable to change there 12 year old process because noone know how to change it.
      we both find it stupid to fill up the numbers with 0 so they are a 12 digit number ;/
      and so they are unable to change this and we can not work with nonsens numbers ( the 0 fileld up ones) we need to workaround it.
      from 12mio numbers 162 are not correct and this we can accept ;),50% of these numbers are crap anyway so its a nice failure quota and can be checkt by a human

      kd ultibuzz

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://606711]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2018-06-23 22:25 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (126 votes). Check out past polls.