[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] HTTP Header Info
- Subject: Re: [cobalt-users] HTTP Header Info
- From: <jens@xxxxxxxxxxxxxxxxxxxx>
- Date: Tue Nov 14 18:48:39 2000
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
Cody Watkins <codyw@xxxxxxxxxxxxxxxxx> writes:
> the Apache server on the raqs sends out? I am using it in a cgi-script
> and I need to be able to remove the www. if it is present. So the
> So is there a filter command I can use to remove the www. if it is
> present in a certain variable?
It depends on, which programming language you are using.
If you're using Perl, you can get by with something like:
($varname) = $varname =~ /^(?:www\.)?(.*)$/;
And yes, I deliberately choose a cryptic solution :-) (TIMTOWTDI)
--
Jens Kristian Søgaard, Mermaid Consulting I/S,
jens@xxxxxxxxxxxxxxxxxxxx,
http://www.mermaidconsulting.com/
_______________________________________________
cobalt-users mailing list
cobalt-users@xxxxxxxxxxxxxxx
To Subscribe or Unsubscribe, please go to:
http://list.cobalt.com/mailman/listinfo/cobalt-users