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:
>
>
>
> The regular expression will match:
>
> class='foo'>
> And I'll get:
>
>
>
> Is there any way I can tell the
On Nov 29, 2003, at 11:35 AM, James Edward Gray II wrote:
On Nov 29, 2003, at 1:15 PM, Dan Anderson wrote:
I have a regular expression that looks like:
$foo =~ s[class.*?=.*?'.*?'][]sgi;
We're just looking for spaces with most of those .*?s, right?
Why don't we say that. And between quotes we're
On Nov 29, 2003, at 1:15 PM, Dan Anderson wrote:
I have a regular expression that looks like:
$foo =~ s[class.*?=.*?'.*?'][]sgi;
We're just looking for spaces with most of those .*?s, right? Why
don't we say that. And between quotes we're looking for non-quote
characters, right?
s/class\s*=\