Re: Serious Perl Regular Expression deficiency?



On 23 Dec 2005 20:04:33 -0800, "MikeGee" <michaelpgee@xxxxxxxxx>
wrote:

>robic0 wrote:
>> while (s/<!--(.*)-->//s) { print "$1\n"; }
>
>You post is longer than I can concentrate to read carefully, but in the
>above line, try:
>s/<!--(.*?)-->//s
>and see if there is a difference.
>
>I don't think you should make over-arching comments on the dificiencies
>of a system that works fine for everyone else. I bet most of the
>really knowledgable folks reading this newsgroup ignore your question
>just because of the bad attitude.

I think you should look past your navel in these issues.
You just look at the tip of the iceberg. Why should these issues
be of concern to anyone? Its a simple capability that regex
really badly falls down on. To have a match expression that
excludes a specific "string", then resets the counter. The
match won't happen on (.*) but not this "ASDF".
Do you understand that Mike?

.