Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Data obfuscation in unstructured txt file

chvizda
8 - Asteroid

Hi all

I have following problem:

 

I have a large text file which contains log entries of  network devices. So there are no structured data with fields and rows. It is just text.

In this files are IP adresses in the format: 192.168.199.100 

These must be replaced with *.*.*.* 

+ the adresses can be in the following different formats:

 

1.1.1.1

10.10.10.10

100.100.100.100

or in any mix:

10.1.100.10

...

Is there a way to scan the whole file and replace these entries ?

 

Many thanks for any help

 

Steffen

1 REPLY 1
MarqueeCrew
20 - Arcturus
20 - Arcturus

yes

 

REGEX_Replace([Field1], "\d+\.\d+\.\d+\.\d+", '*.*.*.*')

Cheers,

Mark

Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
Labels
Top Solution Authors