Leon wrote:
>
> ...
> > \b stands for a word boundary and has a length of 0.
>
> (4) Is this boundary \b equivalent to an empty string? What is the meaning
> of 0 length? Is 0 lenght = empty string?
No. Imagine how a regexp machine works.
Simplified there is a pointer which directs to the chara
Thanks Bob, Andrea and Members !
For those who did not follow my previous post, what I want is to have an
expression that matches something but not an empty string.
> From: "Bob Showalter"
> Hmm, why do you want to use a regex?
(1) Of course, I could use if ($key==$cid) {};
However, I just wa
> -Original Message-
> From: Leon [mailto:[EMAIL PROTECTED]]
> Sent: Friday, December 21, 2001 5:05 AM
> To: [EMAIL PROTECTED]
> Subject: how to construct regexes so that it do not match null
>
>
> Without using $key == $cid,
> How to construct a pattern so that $key match $cid.
> I do
Leon wrote:
>
> Without using $key == $cid,
> How to construct a pattern so that $key match $cid.
> I do not understand why in the undermentioned script, $key match $cid.
> All explanations would be very much appreciated.
> Thanks
>
> use strict;
> my $cid = '';
> my $key = '1234';
> if ($key=~/