China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-04 06:52
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » Extract the domain name from a URL View 688 Replies 3
Original Poster Posted 2007-04-17 05:41 ·  中国 辽宁 大连 联通
初级用户
Credits 86
Posts 31
Joined 2007-01-09 13:30
19-year member
UID 75960
Gender Male
Status Offline
http://www.baidu.com/s/s/
http://sina.com/bbs/x/


After extraction it becomes
www.baidu.com
sina.com
;)

How can i do this?
Floor 2 Posted 2007-04-17 05:47 ·  中国 新疆 乌鲁木齐 电信
高级用户
★★★
Autowalk
Credits 845
Posts 375
Joined 2007-03-03 01:58
19-year member
UID 80606
Gender Male
Status Offline
Recent Ratings for This Post ( 1 in total) Click for details
RaterScoreTime
FBOAR +2 2007-04-17 06:09
Floor 3 Posted 2007-04-22 00:41 ·  中国 辽宁 大连 教育网
初级用户
Credits 45
Posts 25
Joined 2007-04-21 13:23
19-year member
UID 85991
Gender Male
Status Offline
???
What if the URL is custom-defined?
Floor 4 Posted 2007-04-22 01:02 ·  中国 浙江 杭州 联通
银牌会员
★★★
Credits 1,928
Posts 931
Joined 2007-01-06 11:46
19-year member
UID 75624
Gender Male
Status Offline
Regular expression
Forum Jump: