Answer the question
In order to leave comments, you need to log in
How to replace http with https in the URL for a domain and subdomains on it using a regular expression?
How to replace http with https in the URL for a domain and subdomains on it using a regular expression?
I'm looking through http://(([^.]+)\.)?livejournal\.com/
And what should I use to change only https at the beginning in the found URLs and leave everything else unchanged?
Example: found anhar.livejournal.com/3205896.html - received https://anhar.livejournal.com/3205896.html
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question