Re: returning problem of regexp

2004-06-11 Thread Graf Laszlo
if ( /^(.*?)()(.*?)$/ .. /^(.*?)(<\/sm:.+?>)/ ) { print "$_"; } $i++; } wich returns these lines: BBB <- the first watched line is present CCC1 CCC2 <- the last two are missing from

returning problem of regexp

2004-06-10 Thread Graf Laszlo
As you can see, I put wich means more s. I prefer this form // .. // of regexp. How should I change it to match all lines which contain 'sm:', no matter of following characters ? Graf Laszlo -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTEC

regexp

2004-05-19 Thread Graf Laszlo
Hi I have the following HTML structure: BBB CCC Every line in this structure is an element of an array, named @lines, and I access the elements using a foreach loop. When I know the tag's name, by example 'sm:a', and I need to ex