CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Regular Expressions: Regular expression to extract domain name: Edit Log



prateekm21
New User

Apr 23, 2009, 8:54 AM


Views: 5031
Regular expression to extract domain name

Hello I am new to perl and I am having some issues. can someone tell me a good way to extract the domain name

EG 1:
http://www.google.com/test/india/clickhandler.js
I need - google.com

EG 2:
http://test.usa.com/o/tA$IXTq$2ALoYduAJQs$j.AJQRO-QA/nourl1
I need - usa.com

Thank You in advance


(This post was edited by prateekm21 on Apr 23, 2009, 9:42 AM)


Edit Log:
Post edited by prateekm21 (New User) on Apr 23, 2009, 9:42 AM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives