Re: regexp appears to be faulty!?
| From: | Henry Grech-Cini | Date: | Wed, 25 Feb 2004 12:31:36 +0000 |
| Subject: | Re: regexp appears to be faulty!? | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-178828@lists.php.net to get a copy of this message | ||
Absolutely brilliant, also I'm using the /s modifier to process newlines as
well.
Great
Thanks to everybody for their help.
"Jome" <jome@emoj.net> wrote in message
news:20040224155611.16081.qmail@pb1.pair.com...
>
> "Henry Grech-Cini" <henry@teacake.force9.co.uk> skrev i meddelandet
> news:20040224153359.45706.qmail@pb1.pair.com...
> > Thanks for that Mike,
> >
> > I was getting lost.
> >
> > Is there anyway to say
> >
> > Any characters excluding the sequence </fieldset>
> >
> > so I could do something like
> >
> > /<fieldset([^>]*)>(.* whilst not <\/fieldset>)<\/fieldset>/i
> >
> > Or alternatively is there a switch to say get the smallest sequence
> >
>
> ? is what you're looking for. i.e.: .*? instead of just .*
>
> /j