On Thu, Jul 22, 2010 at 12:57 AM, Chandan Kumar wrote:
> ex: $_="#!chk/usr/bin/perl";
>
> 1)The output for (\b\W\b) is \
There is no \ (back-slash) character in your string. :\ I assume then
that you meant '/' (forward-slash)?
> Iam looking for some character which is between a word charact
link http://www.perl.org/books/beginning-perl/
Thanks in advance.
Best regards,
chandan.
--- On Tue, 20/7/10, Jim Gibson wrote:
From: Jim Gibson
Subject: Re: Word boundaries
To: "Perl Beginners"
Date: Tuesday, 20 July, 2010, 9:29 PM
On 7/20/10 Tue Jul 20, 2010 2:06 PM,
>-Original Message-
>From: John W. Krahn [mailto:jwkr...@shaw.ca]
>Sent: Tuesday, July 20, 2010 15:06
>To: Perl Beginners
>Subject: Re: Word boundaries
>
>Rob Dixon wrote:
>> On 20/07/2010 16:22, Chandan Kumar wrote:
>>>
>>> Small confusion a
Wagner, David --- Senior Programmer Analyst --- CFS wrote:
-Original Message-
From: John W. Krahn [mailto:jwkr...@shaw.ca]
Sent: Tuesday, July 20, 2010 15:06
To: Perl Beginners
Subject: Re: Word boundaries
Rob Dixon wrote:
On 20/07/2010 16:22, Chandan Kumar wrote:
Small confusion
On 7/20/10 Tue Jul 20, 2010 2:06 PM, "John W. Krahn"
scribbled:
> Rob Dixon wrote:
>> On 20/07/2010 16:22, Chandan Kumar wrote:
>>>
>>> Small confusion about word boundaries. word boundaries matches
>>> anything between non-word character and word character ,right.
>>
>> Not quite.
>
> Quite
and the docs say this:
A word boundary ("\b") is a spot between two characters that has
a "\w" on one side of it and a "\W" on the other side of it (in
either order), counting the imaginary characters off the
beginning and end of the string as matching a "\W".
so
> "JWK" == John W Krahn writes:
JWK> Rob Dixon wrote:
>> On 20/07/2010 16:22, Chandan Kumar wrote:
>>>
>>> Small confusion about word boundaries. word boundaries matches
>>> anything between non-word character and word character ,right.
>>
>> Not quite.
JWK> Quite.
>> /\
Chandan Kumar wrote:
--- On Tue, 20/7/10, John W. Krahn wrote:
Chandan Kumar wrote:
Small confusion about word boundaries. word boundaries matches anything
between non-word character and word character ,right.
Correct.
Here is small example :
$_ = "?Jack do you know the beauty of perl"
p
Rob Dixon wrote:
On 20/07/2010 16:22, Chandan Kumar wrote:
Small confusion about word boundaries. word boundaries matches
anything between non-word character and word character ,right.
Not quite.
Quite.
/\b/ matches any (zero-length) point in a string between a
word and a non-word charact
On 20/07/2010 16:22, Chandan Kumar wrote:
Hi ,
Small confusion about word boundaries. word boundaries matches
anything between non-word character and word character ,right.
Not quite. /\b/ matches any (zero-length) point in a string between a
word and a non-word character, or between a word c
Chandan Kumar wrote:
Hi ,
Hello,
Small confusion about word boundaries. word boundaries matches anything
between non-word character and word character ,right.
Correct.
Here is small example :
$_ = "?Jack do you know the beauty of perl"
print "Enter your text:";
my $pattern =;
chomp $patte
11 matches
Mail list logo