Query on Qunatifiers

2010-07-14 Thread Chandan Kumar
Hi ,   I have query over quantifiers.   Could you please explain the combination of operators Question mark (?),dot(.),star(*),plus(+).   Say this is my string:   $_ = " this is my first pattern ,quite confused with quantifiers"    ex: (thi.*?) or (thi.+?) etc   I know what each operator doe

Re: Query on Qunatifiers

2010-07-15 Thread Shlomi Fish
On Thursday 15 Jul 2010 09:51:32 Chandan Kumar wrote: > Hi , > > I have query over quantifiers. > > Could you please explain the combination of operators Question mark > (?),dot(.),star(*),plus(+). > Say this is my string: > > $_ = " this is my first pattern ,quite confused with quantifi

AW: Query on Qunatifiers

2010-07-15 Thread Thomas Bätzler
Chandan Kumar asked: > I have query over quantifiers. > > Could you please explain the combination of operators Question mark > (?),dot(.),star(*),plus(+). > > Say this is my string: > > $_ = " this is my first pattern ,quite confused with quantifiers" > > ex: (thi.*?) or (thi.+?) etc > >

Re: Query on Qunatifiers

2010-07-15 Thread Chas. Owens
On Thu, Jul 15, 2010 at 03:22, Thomas Bätzler wrote: snip > In RE, a "." by itself is the atom that matches any one character. > > The quantifiers mean: > > "?" 0 or 1 occurences of the previous expression. > "+" 1 or more occurrences of the previous expression (greedy match). > "*" 0 or more occu

Re: Query on Qunatifiers

2010-07-15 Thread Chandan Kumar
    Thanks in advance.     Best Regards, chandan. --- On Thu, 15/7/10, Chas. Owens wrote: From: Chas. Owens Subject: Re: Query on Qunatifiers To: "Thomas Bätzler" Cc: "Beginners Perl" , "Chandan Kumar" Date: Thursday, 15 July, 2010, 2:08 PM On Thu, Jul 15, 20

Re: Query on Qunatifiers

2010-07-15 Thread Jim Gibson
On 7/15/10 Thu Jul 15, 2010 12:24 PM, "Chandan Kumar" scribbled: > Hi guys, >   > I could able to understand the quantifiers. But still stuck with one > confusion.if dot operator is used with quantifiers. >   > ex: my string is $_="ths is my first regular expression"; >   > please explain t

Re: AW: Query on Qunatifiers

2010-07-15 Thread Chandan Kumar
Hi ,   Thanks guys for your quick response.   I will try it out combinations and get back to you if i have issues.       Regards, chandan. --- On Thu, 15/7/10, Thomas Bätzler wrote: From: Thomas Bätzler Subject: AW: Query on Qunatifiers To: "Beginners Perl" Cc: "Chand