community
cancel
Showing results for 
Search instead for 
Did you mean: 

Alteryx designer Discussions

Find answers, ask questions, and share expertise about Alteryx Designer.
Upgrade Alteryx Designer in 10 Steps

Debating whether or not to upgrade to the latest version of Alteryx Designer?

LEARN MORE
SOLVED

Data obfuscation in unstructured txt file

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

Highlighted
Alteryx Certified Partner
Alteryx Certified Partner

yes

 

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

Cheers,

Mark

Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and reboot. Order shall return.
Labels