Wikipedia talk:Bots/Requests for approval/DemonDays64 Bot 2

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

February 19 change to regex[edit]

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)[reply]

Sounds good. Thanks for the heads up. --TheSandDoctor Talk 17:22, 20 February 2020 (UTC)[reply]
@DemonDays64: Please see the above. --TheSandDoctor Talk 17:22, 20 February 2020 (UTC)[reply]

April 17 change to regex[edit]

@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)![reply]

Go ahead DemonDays64. I’ll update the page shortly. TheSandDoctor Talk 17:57, 17 April 2020 (UTC)[reply]
Thanks! DemonDays64 (talk) 17:59, 17 April 2020 (UTC)[reply]
The new settings have been changed and uploaded to Wikipedia! Thank you. DemonDays64 (talk) 18:13, 17 April 2020 (UTC)[reply]