Re: Word boundaries

2010-07-22 Thread Brandon McCaig
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

Re: Word boundaries

2010-07-21 Thread Chandan Kumar
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.

RE: Word boundaries

2010-07-21 Thread Wagner, David --- Senior Programmer Analyst --- CFS
>-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

Re: Word boundaries

2010-07-20 Thread John W. Krahn
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

Re: Word boundaries

2010-07-20 Thread Jim Gibson
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

Re: Word boundaries

2010-07-20 Thread Uri Guttman
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

Re: Word boundaries

2010-07-20 Thread Uri Guttman
>>>>> "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

Re: Word boundaries

2010-07-20 Thread John W. Krahn
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

Re: Word boundaries

2010-07-20 Thread John W. Krahn
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

Re: Word boundaries

2010-07-20 Thread Rob Dixon
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

Re: Word boundaries

2010-07-20 Thread John W. Krahn
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:";

Word boundaries

2010-07-20 Thread Chandan Kumar
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