Article View: comp.lang.perl.misc
Article #325Re: How to search ******
From: Mike Stok
Date: Tue, 15 Jul 1997 00:00
Date: Tue, 15 Jul 1997 00:00
23 lines
1375 bytes
1375 bytes
In article <5qg24f$9tc@news-central.tiac.net>,
Mike Stok <mike@stok.co.uk> wrote:
>>if ($line =~ /\*\*/)
>>{
>>................
>>}
>
> if ($line =~ /\*+/) { ... }
>
>or the regex you're using will match one or more consecutive * characters
>anywhere on the line,
That was a mistake. \*\* will match if there are 2 consecutive *
characters, which is different from one or more. Sorry,
Mike
--
mike@stok.co.uk | The "`Stok' disclaimers" apply.
http://www.stok.co.uk/~mike/ | PGP fingerprint FE 56 4D 7D 42 1A 4A 9C
http://www.tiac.net/users/stok/ | 65 F3 3F 1D 27 22 B7 41
stok@psa.pencom.com | Pencom Systems Administration (work)
Technical Details
Message-ID:
<5qg3ud$cnr@news-central.tiac.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<33CAFAC4.2013B7C3@csc.albany.edu> <5qg24f$9tc@news-central.tiac.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1133f4,b92671e9260cc62 X-Google-Attributes: gid1133f4,public X-Google-Thread: 112333,b92671e9260cc62 X-Google-Attributes: gid112333,public X-Google-Thread: fa0ae,b92671e9260cc62 X-Google-Attributes: gidfa0ae,public From: mike@stok.co.uk (Mike Stok) Subject: Re: How to search ****** Date: 1997/07/15 Message-ID: <5qg3ud$cnr@news-central.tiac.net> X-Deja-AN: 256997989 References: <33CAFAC4.2013B7C3@csc.albany.edu> <5qg24f$9tc@news-central.tiac.net> Organization: Pencom Systems Administration Newsgroups: comp.lang.perl.misc,de.comp.lang.perl,fr.comp.lang.perl