Hello again

Tony Bowden tony at kasei.com
Tue Jan 29 05:41:46 CST 2002


On Tue, Jan 29, 2002 at 11:19:09AM -0000, Terrential wrote:
> say i have a url:  http://www.terrential.com/ecards/ecard.pl
> is there anyway that i can get the www.terrential.com bit on its own thru
> some sort of reg exp??

Why a reg exp?

The easiest way is:

  URI->new($url)->host

If you need a regular expression, will the protocol always be http?

Tony




More information about the Belfast-pm mailing list