Re: Patten matching

2007-01-10 Thread Deepak Barua
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 <-- HER

Re: Patten matching

2007-01-10 Thread Deepak Barua
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 or > other whitespace before or after them what can be the match e

Re: Patten matching

2007-01-10 Thread Tom Phoenix
On 1/10/07, Deepak Barua <[EMAIL PROTECTED]> wrote: Hi , i want to match a pattern like "/*" and "*/" with some 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,

Patten matching

2007-01-10 Thread Deepak Barua
Hi , i want to match a pattern like "/*" and "*/" with some or other whitespace before or after them what can be the match expression for the same..? Assume the pattern is stored in a variable ... $pattern=qr!/\*!; Regards Deepak -- Code Code Code Away -- To unsubscribe, e-mail: [EMAIL PROTECT