Hi,
I try to use FPE throug Transform engine to anonimize IP addresses.
I got the template that match my needs in the form of:
\b([01]?[0-9][0-9]?|2[0-4][0-9]|25[0-5]).\b([01]?[0-9][0-9]?|2[0-4][0-9]|25[0-5]).\b([01]?[0-9][0-9]?|2[0-4][0-9]|25[0-5]).\b([01]?[0-9][0-9]?|2[0-4][0-9]|25[0-5])
This will, for the value 127.0.0.1, give me four groups such as “127”, “0”, “0”, “1”.
The difficulty is that want a valid IP address as output (ie. where each group is resolved into a 0 to 255, possibly 254, range). Problem the alphabet seems to be formed of single UTF-8 characters. If I put numeric, I might have an output of 999.741.645.2 which is not a valid IP address.
Any suggestion?
Jeff