[26316] in Perl-Users-Digest
Perl-Users Digest, Issue: 8491 Volume: 10
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Thu Oct 6 03:05:38 2005
Date: Thu, 6 Oct 2005 00:05:07 -0700 (PDT)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Perl-Users Digest Thu, 6 Oct 2005 Volume: 10 Number: 8491
Today's topics:
Re: regexp includes a dot in string robic0@yahoo.com
Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Wed, 05 Oct 2005 22:46:35 -0700
From: robic0@yahoo.com
Subject: Re: regexp includes a dot in string
Message-Id: <jce9k1pcbrbj5ml9mt92tdd7322ck32jvl@4ax.com>
On Wed, 05 Oct 2005 02:42:35 GMT, "William Hymen"
<t18_pilot@hotmail.spam.com> wrote:
>All,
>
>I would like to use a regular expression pattern
>match to search for a string containing a dot
>and not have it equivalent to a wildcard.
>For example if $regexp='123.45';
>$target =~ /$regexp/;
>would normally match on
>123.45
>123x45
>123g45 etc.
>
>I would like only 123.45
>
>Thanks in advance.
>
>Bill
>
Since you didn't qualify $target,
and $regexp is a constant:
$regexp = '\.';
is fastest.
------------------------------
Date: 6 Apr 2001 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Digest Administrivia (Last modified: 6 Apr 01)
Message-Id: <null>
Administrivia:
#The Perl-Users Digest is a retransmission of the USENET newsgroup
#comp.lang.perl.misc. For subscription or unsubscription requests, send
#the single line:
#
# subscribe perl-users
#or:
# unsubscribe perl-users
#
#to almanac@ruby.oce.orst.edu.
NOTE: due to the current flood of worm email banging on ruby, the smtp
server on ruby has been shut off until further notice.
To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.
#To request back copies (available for a week or so), send your request
#to almanac@ruby.oce.orst.edu with the command "send perl-users x.y",
#where x is the volume number and y is the issue number.
#For other requests pertaining to the digest, send mail to
#perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
#sending perl questions to the -request address, I don't have time to
#answer them even if I did know the answer.
------------------------------
End of Perl-Users Digest V10 Issue 8491
***************************************