Home
About
Download
Register
News
Help
Register
Log In
Forums
Scripts & Popups
regex match domain but ignore subdomains
Forums
Active Threads
Search
Who's Online
Help
Print Thread
Re: regex match domain but ignore subdomains
#
159111
14/09/06
06:41 AM
Joined:
Feb 2005
Posts: 342
R
Rand
Fjord artisan
Rand
Fjord artisan
R
Joined:
Feb 2005
Posts: 342
Code:
$regex(%text,/([^\/.]+\.(?:com|org|net|ru|sk))(?=\b|\/)/gi)
Typing:
//echo -ag $regex(
http://www.test.com/
http://test2.com/
http://a.b.c.test3.com/
,/([^\/.]+\.(?:com|org|net|ru|sk))(?=\b|\/)/gi) -- $regml(1) -- $regml(2) --- $regml(3)
Will return: 3 -- test.com -- test2.com --- test3.com
Copy Link to Clipboard
Entire Thread
Subject
Posted By
Posted
regex match domain but ignore subdomains
Scorpwanna
14/09/06
03:44 AM
Re: regex match domain but ignore subdomains
Rand
14/09/06
06:41 AM
Re: regex match domain but ignore subdomains
Scorpwanna
14/09/06
04:57 PM
Re: regex match domain but ignore subdomains
Scorpwanna
14/09/06
08:53 PM
Re: regex match domain but ignore subdomains
Scorpwanna
15/09/06
12:48 AM
Hop To
News and Discussions ------
Latest News
General Discussion
Support ------
mIRC Help
Connection Issues
Scripts & Popups
Development ------
Feature Suggestions
Developers
Bug Reports
Print Thread
Switch to Flat Mode
Show Likes
Link Copied to Clipboard
View Profile
Private Message
Follow User
Forum Posts
Forum Rules
·
Mark All Read
Contact Us
·
Help
·
mIRC Homepage