Log Error Regex

koby

Renowned Member
Jun 21, 2012
138
4
83
Natanya , Israel
Hello Guys

Can Someone please help me understand this error on my log.

Here is the log

Code:
WARNING: ^* matches null string many times in regex; marked by <-- HERE in m/^* <-- HERE [.](ma[dfgmqrstvw]|vb[esx]|ws[cfh]|xnk)$/ at /usr/share/perl5/PMG/RuleDB/MatchFilename.pm line 91.


Here is the rule it reffrering to :

Code:
*[.](ma[dfgmqrstvw]|vb[esx]|ws[cfh]|xnk)

Thank you all for any help.
Koby Peleg Hen.
 
where did you enter this regex? is this actually for proxmox backup server or (as i would guess) for proxmox mailgateway?

anyway in regexes a '*' means repeate the previous character 0 or more times and the '^' means the start of the string

so ^* means 'the start of the string 0 or more times' (which is nonsensical)
as i guess that you wanted to match anthing with a star, use '.*' ('.' means 'any character' in regexes)

you can find a quick tutorial to perl regexes here: https://perldoc.perl.org/perlrequick