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
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,

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 character and word character ,right. >> >> Not quite. > > Quite

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 and word character ,right. >> >> Not quite. JWK> Quite. >> /\

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 perl" p

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 charact

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 c

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:"; my $pattern =; chomp $patte