Am 10.05.2024 um 09:29:39 Uhr schrieb Steve Newcomb:

> % python3 -c "import re; print( re.compile( r'^[0-3][0-9][ 
> \t]+[A-Z][a-z]{2}[ \t]+20[23][0-9][ 
> \t]+[0-2][0-9]:[0-5][0-9]:[0-5][0-9]').search( '10 May 2024
> 09:16:18'))"

It only works by using \ at the end.
m@ryz:~$ python3 -c "import re; print( re.compile( r'^[0-3][0-9][\
\t]+[A-Z][a-z]{2}[ \t]+20[23][0-9][\
\t]+[0-2][0-9]:[0-5][0-9]:[0-5][0-9]').search( '10 May 2024 09:16:18'))"
None
m@ryz:~$ 

What does that mean?
For me it looks like the regex doesn't match.


_______________________________________________
Fail2ban-users mailing list
Fail2ban-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fail2ban-users

Reply via email to