Convert perl regex to python -


the regex expression i'm trying convert

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

but i'm not getting desired result

supposing want able match *.swiss.ch domains , addresses:

import re preg = re.compile(r'([^\.]+)\.swiss\.ch') 

Comments

Popular posts from this blog

android - Pass an Serializable object in AIDL -

How to provide Authorization & Authentication using Asp.net, C#? -

How to use Authorization & Authentication in Asp.net, C#? -