Re: problems with regular expressions

2003-11-29 Thread R. Joseph Newton
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

Re: problems with regular expressions

2003-11-29 Thread drieux
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

Re: problems with regular expressions

2003-11-29 Thread James Edward Gray II
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*=\