Segment mapping algorithm and specials characters

  • 0
  • 1
  • Problem
  • Updated 4 months ago
  • Solved
Hi all,
I've just created a Segment Mapping Algorithm to mask a ID CODE value in our database.
The original value is mostly Alphanumerical characters like 'ABCD1234XYZ9876' but some ids conteins special characters like '-' or '*'  (i.e.   'ABDC-1234*XYZ'). Not all lines contiens special characters and specials char don't have specific position within the code.
I saw that thoses lines are not masked. Masking Engine Ignore them.
How can i mask this code too (i don't have to preserve special char, they can be replaced by alphanumerical values) ?

Regards
Photo of Nicolas Ronayette

Nicolas Ronayette

  • 206 Points 100 badge 2x thumb

Posted 4 months ago

  • 0
  • 1
Photo of Hims

Hims, Employee

  • 2,126 Points 2k badge 2x thumb
Hi Nicholas,
I suggest 2 points.
1. Create the Algorithm as wide as the widest incoming string e.g if the max width is 12 chars make the algorithm 4 segments X  3 chars each.
2. Specify characters to ignore in the algorithm as in the attached diagram.

Thanks
Hims
Photo of Nicolas Ronayette

Nicolas Ronayette

  • 206 Points 100 badge 2x thumb
Hi,

Thanks for your quick answer.
I'll try it asap and keep you inform here if it solved my problem.

Regards,