Mailing List ArchiveSupport open source code!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: stripping HTML tags with Perl
- To: tlug@example.com
- Subject: Re: stripping HTML tags with Perl
- From: Darren Cook <darrenj@example.com>
- Date: Tue, 05 Dec 2000 11:27:53 +0900
- Content-Transfer-Encoding: 7bit
- Content-Type: text/plain; charset=iso-2022-jp
- References: <20001204133053G.poulin@example.com> <14892.18933.990298.358983@example.com>
- Reply-To: tlug@example.com
- Resent-From: tlug@example.com
- Resent-Message-ID: <kMYD2C.A.faC.kKFL6@example.com>
- Resent-Sender: tlug-request@example.com
> s/<.*?>//ig; > > This is an oops, I think. AFAIK Perl regexps are _greedy_, matching > the longest possible string. The ? after the * makes it non-greedy, i.e. the shortest possible match. This works in perl, python (re module) and php (if you use the perl regexes, and not the older POSIX regexes). Darren
- References:
- stripping HTML tags with Perl
- From: "Drew C. Poulin" <poulin@example.com>
- stripping HTML tags with Perl
- From: "Stephen J. Turnbull" <turnbull@example.com>
Home | Main Index | Thread Index
- Prev by Date: Re: stripping HTML tags with Perl
- Next by Date: Re: stripping HTML tags with Perl
- Prev by thread: Re: stripping HTML tags with Perl
- Next by thread: Re: stripping HTML tags with Perl
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links