It will match, in the sense that the rule will be executed.  But it won't replace the parts that aren't matched by the regex.  When you match ^http://example\.com/ you replace it with https://www.example.com/, not https://www.example.com/$1.