http://www.perlmonks.org?node_id=606711


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

sure
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