develooper Front page | perl.perl5.porters | Postings from April 2007

Re: perlfaq9.pod, "remove HTML from a string" example

Thread Previous
From:
demerphq
Date:
April 11, 2007 10:14
Subject:
Re: perlfaq9.pod, "remove HTML from a string" example
Message ID:
9b18b3110704111014j74ca7517ofaa86e4fff44ec03@mail.gmail.com
On 4/11/07, Dr.Ruud <rvtol+news@isolution.nl> wrote:
> > Abigail:
> > Or even (5.10 style + loop-unrolling):
> >
> >    s/< [^>"']++
> >        (?:
> >             (?:"[^"]*+")*+
> >             (?:'[^']*+')*+
> >             [^>'"]*+
> >        )*+
> >      >
> >     /xg;
>
> Good one for the FAQ.

Actually its not just a good one for the FAQ its also a good technique
to keep in mind in general. (Meaning I always forget it and then think
Abigail is very clever for remembering)

:-)

yves

-- 
perl -Mre=debug -e "/just|another|perl|hacker/"

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About