User:TheSandDoctor hi! Due to concerns raised at my talk page about the bot changing [[allmusic.com]]
to [[http://allmusic.com]]
I am changing my regex. It will now be (for example.com):
((?<=(?<!\?)url ?= ?)|(?<=[^[]\[)|(?<=<ref>))(http:\/\/)?(www\.)?example\.com(?!\.)
This will make it not edit links with double square brackets before them. Thanks! DemonDays64 (talk) 04:45, 20 February 2020 (UTC)
@TheSandDoctor: Hi again! I would like to make another change the the regex, to make the bot edit more links. This makes it so that if there is a list formatted like this (with or without a space between the asterisk and the link):
*{link}
it will have HTTPS edited in. I want to do this because I have found that, for example, every link in mainspace to gizmodo.com is HTTPS now, except for 3 that are in lists like this example. This would open up editing links on about 23,956 pages, according to this search (it is slow due to regex search).
This is the regex I would like to change to (addition highlighted):
((?<=(?<!\?)url ?= ?)|(?<=[^[]\[)|(?<=<ref>)|(?<=\* ?))(http:\/\/)?(www\.)?example\.com(?!\.)
Thanks a lot, DemonDays64 (talk) 17:55, 17 April 2020 (UTC)!
Go ahead DemonDay64. I’ll update the page shortly. TheSandDoctor Talk 17:57, 17 April 2020 (UTC)