Dan Anderson wrote:

> I have a regular expression that looks like:
>
> $foo =~ s[class.*?=.*?'.*?'][]sgi;
>
> The problem I run into is that if the following is presented to match:
>
> <table class='foo'><tr class='baz'><td class='bar'>
>
> The regular expression will match:
>
> class='foo'><tr class='baz'><td class='bar'
>
> And I'll get:
>
> <table >
>
> Is there any way I can tell the .*? to match "" as well as "."?
>
> Thanks in advance,
>
> Dan

What is it that you are trying to achieve?  Using real, rather than
generalized, examples, will help a lot.  It sounds sort of like you are
trying to strip extraneous tags.  What are the standards by which you
decide which are extraneous?

Joseph


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to