Last active
December 10, 2015 13:39
-
-
Save jonashackt/3973c3ecd422e310c2b8 to your computer and use it in GitHub Desktop.
Regex for usage in logstash mutate filter with gsub to anonymize logged XML e.g. from SOAP-Services
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Name | |
(?<=<partner:Vorname>)[^<>]+(?=</partner:Vorname>) | |
(?<=<partner:Name>)[^<>]+(?=</partner:Name>) | |
Adresse | |
(?<=<allg:Strasse>)[^<>]+(?=</allg:Strasse>) | |
(?<=<allg:Hausnummer>)[^<>]+(?=</allg:Hausnummer>) | |
(?<=<allg:Postleitzahl>)[^<>]+(?=</allg:Postleitzahl>) | |
(?<=<allg:Ort>)[^<>]+(?=</allg:Ort>) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment