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

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -