Home : Products : Gossamer Links : Development, Plugins and Globals :

Products: Gossamer Links: Development, Plugins and Globals: Re: [yo Huge] create new variable of domain from URL: Edit Log

Here is the list of edits for this post
Re: [yo Huge] create new variable of domain from URL
It can be changed like below:
Code:
sub remove_leading_http { my $tmp = $_[0]; $tmp =~ s|https?\://(www.)?||; $tmp =~ s|/.*$||g; return $tmp; }

Cheers,

Dat

Programming and creating plugins and templates
Blog

Last edited by:

tandat: Mar 21, 2013, 7:21 PM

Edit Log: