Hi Tom,
           I was wondering if i use something like
            $start_pattern  = qr!(.*?)/\*(.*?)|(.*?)//(.*?)!;
             if(($match_condition = m/($start_pattern)/) || $continue == 1) {
}
would it work ...
i am getting this error
"Quantifier follows nothing in regex; marked by <-- HERE in m/* <--
HERE ?\014*?/ at -e line 111."

This is what i actually want to do find "/*" pattern with anything
before it and after it ..

Regards
Deepak


On 1/10/07, Deepak Barua <[EMAIL PROTECTED]> wrote:
Hi Tom,
             I 'll try it .. ?

Thanks..

Regards
Deepak

On 1/10/07, Tom Phoenix <[EMAIL PROTECTED]> wrote:
> On 1/10/07, Deepak Barua <[EMAIL PROTECTED]> wrote:
>
> > Hi , i want to match a pattern like "/*" and "*/" with some<tab> or
> > other whitespace before or after them what can be the match expression
> > for the same..?
>
> It sounds as if you're looking for the whitespace metacharacter, which
> is /\s/ . Generally, you'll use a modifier with it, perhaps like /\s+/
> to match one or more whitespace characters.
>
> Is that what you needed? Hope this helps!
>
> --Tom Phoenix
> Stonehenge Perl Training
>


--
Code Code Code Away



--
Code Code Code Away

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to