Тема: AHK: Извлечь домен ссылки в адресной строки браузера
Можно ли из этих возможных URL адресов в адресной строке, извлечь домен сайта: "alucky.globus-inter.com" или любого другого возможного сайта
И лучше что бы вместить эту операцию если возможно в одну команду RegExMatch
В скрипте представлены возможные варианты текста спереди и сзади адреса домена:
; F1::
; Send, ^{sc02E} ;Ctrl+C
; ClipWait 0.8
; URL := clipboard
; URL = alucky.globus-inter.com
; URL = http://alucky.globus-inter.com
; URL = http://alucky.globus-inter.com/
; URL = http://alucky.globus-inter.com/index.php/for-users.php
; URL = https://alucky.globus-inter.com/index.php/for-advertisers.php
; URL = http://www.alucky.globus-inter.com/index.php/for-advertisers.php
; URL = ftp://alucky.globus-inter.com/index.php/for-users.php
; URL = www.alucky.globus-inter.com/index.php/for-users.php
; URL = alucky.globus-inter.com/index.php/for-users.php
; URL = http://alucky.globus-inter.com/search?q=http://site.ru/index.html
URL = ???
If RegExMatch(URL, "???", Found)
DomainFound = %Found1%
MsgBox %DomainFound%
return