[SOLVED] Ausfiltern Dateien mit doppelter Dateiendung

thno

New Member
Feb 12, 2021
12
2
3
55
Hallo zusammen,

kann mir jemand den regulären Ausdruck zum Ausfiltern von Dateien mit doppelten Dateiendungen benennen. Ich möchte z.B. Mails mit Dateianhängen welche auf .doc.pdf oder .exe.pdf enden herausfiltern.

VG thno
 
Ohne es explizit selbst getestet zu haben:
Code:
.*\.[a-zA-Z0-9]{2,3}\.[a-zA-Z0-9]{2,3}$

das steht fuer:
* beliebigen text
* gefolgt von '.'
* gefolgt von 2-3 Zeichen aus a-zA-Z0-9
* gefolgt von '.'
* gefolgt von 2-3 Zeichen aus a-zA-Z0-9

bitte beachten, dass das potentiell auch false-positives generieren kann...

Ansonsten kann ich https://regex101.com/ zum probieren von regular expressions empfehlen.

hoffe das hilft!
 
Freut zu hören!

bitte den Thread als 'SOLVED' markieren - das hilft anderen usern mit ähnlichen Fragen.

Danke!
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!