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