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
Hi ,
Im still confused of using word boundaries. After all the help given by
everyone here ,I have tried other example to get to know what exactly word
boundaries mean.
I'm not trying to extract any particular character ,just playing with word
boundries to understand more on it.
>-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 charact
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 a
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
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
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
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:";
Hi ,
Small confusion about word boundaries. word boundaries matches anything between
non-word character and word character ,right.
Here is small example :
$_ = "?Jack do you know the beauty of perl"
print "Enter your text:";
my $pattern = ;
chomp $pattern;
if (/$patt
12 matches
Mail list logo