Convert perl regex to python

The regex expression I’m trying to convert is

my $host =~m/([^.])(.swiss.ch)/)

But I’m not getting the desired result


Source: regex

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.