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