in reply to Re^2: puzzled by pages
in thread puzzled by pages
Perhaps this pattern is what you need.
$server_name =~ m{ \A # start of string .{1,3} # 1-3 characters \. # a literal period product1help\.com # literal 'product1help.com' }xms;
If you want to know what the prefix matched actually was, use this:
$server_name =~ m{ \A # start of string ( # start capture 1 .{1,3} # 1-3 characters ) # end capture 1 \. # a literal period product1help\.com # literal 'product1help.com' }xms; my $prefix = $1;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: puzzled by pages
by grashoper (Monk) on Jun 11, 2008 at 04:06 UTC | |
by kyle (Abbot) on Jun 11, 2008 at 15:02 UTC | |
by grashoper (Monk) on Jun 11, 2008 at 18:05 UTC | |
by kyle (Abbot) on Jun 11, 2008 at 19:01 UTC | |
by grashoper (Monk) on Jun 11, 2008 at 23:47 UTC |