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
Post a Comment