in reply to Conditional Regex

It seems quite simple, if I understand you right, you want to filter out values that don't begin with http://www.localhost.net or /.

Maybe this is what you need?

#!/usr/bin/perl -Wl use strict; my $my_domain = quotemeta 'http://www.localhost.net'; print for grep /^(?:$my_domain|\/)/, qw[ /sered/uplink /my/projects/ heh/reg http://www.OtherNetw +ork.org/network/ http://www.localhost.net/hello ];


perl -e '$,=$",$_=(split/\W/,$^X)[y[eval]]]+--$_],print+just,another,split,hack'er