Re: Perl Question

From: Date: Fri, 28 Jun 2002 17:17:03 +0000
Subject: Re: Perl Question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-104376@lists.php.net to get a copy of this message
Hi there :)
I know that this a PHP list. I need some perl help.
Don't say that, the List Gestapo will beat you! Instead, say that you have a regular expression question, since that applies to PHP as well.
$domain = s/./-/gi;
I think all you need to do is escape your period, since . is a metacharacter. Try s/\./-/gi; -Josh

« previous php.general (#104376) next »