I try to match a trailing / like this:
type(re.match('/$', u'https://x.x.x/')) <type 'NoneType'>
However, this one does match:
type(re.match('.*/$', u'https://x.x.x/')) <type '_sre.SRE_Match'>
Using Perl the first pattern does match:
perl -e 'print "true" if "https://example.org/" =~ /\/$/'
How can this behavior be explained?