🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #50143

Re: docs on filter_art? Mime tools?

#50143
From: bill davidsen
Date: Thu, 25 Jan 2001 21:23
22 lines
1853 bytes
In article <87lms1hkci.fsf@erlenstar.demon.co.uk>,
Andrew Gierth  <andrew@erlenstar.demon.co.uk> wrote:

| sub wildmat_to_regex
| {
|     my $w = quotemeta shift;
|     $w =~ s{\\([*?]|\\(\\?.)|\[(?:\\\^)?(?:\\\])?[^]]*\\\])}
|            {($1 eq '*' ? '.*' :
| 	     $1 eq '?' ? '.'  :
| 	     defined($2) ? $2 :
| 	     do { my $p = $1; $p =~ s/\\([][^-])/$1/g; $p; })}eg;
|     return $w;
| }

  Practicing for the Obfuscated PERL contest?

-- 
  bill davidsen <davidsen@tmr.com>  CTO, TMR Associates, Inc
Usenet is like a herd of performing elephants: massive, difficult to 
control, awe-inspiring, entertaining, and a source of mind-boggling 
amounts of excrement when you least expect it.
Technical Details
Message-ID: <94q5g0$5il0$1@newssvr05-en0.news.prodigy.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!supernews.google.com!sn-xit-02!sn-xit-01!supernews.com!newshub2.rdc1.sfba.home.com!news.home.com!enews.sgi.com!newscon06.news.prodigy.com!prodigy.com!newsmst01!postmaster.news.prodigy.com!darkstar.prodigy.com!davidsen
References: <G7FGpD.6Fz@world.std.com> <87n1cio3t8.fsf@erlenstar.demon.co.uk> <yl8zo1uaod.fsf@windlord.stanford.edu> <87lms1hkci.fsf@erlenstar.demon.co.uk>

Show Full Headers
Complete Article Headers
Message-ID: <94q5g0$5il0$1@newssvr05-en0.news.prodigy.com>
Subject: Re: docs on filter_art? Mime tools?
Date: Thu, 25 Jan 2001 21:23:12 +0000
From: davidsen@tmr.com (bill davidsen)
References: <G7FGpD.6Fz@world.std.com> <87n1cio3t8.fsf@erlenstar.demon.co.uk> <yl8zo1uaod.fsf@windlord.stanford.edu> <87lms1hkci.fsf@erlenstar.demon.co.uk>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!supernews.google.com!sn-xit-02!sn-xit-01!supernews.com!newshub2.rdc1.sfba.home.com!news.home.com!enews.sgi.com!newscon06.news.prodigy.com!prodigy.com!newsmst01!postmaster.news.prodigy.com!darkstar.prodigy.com!davidsen
Newsgroups: news.software.nntp
Organization: TMR Associates, Schenectady NY
Lines: 21
NNTP-Posting-Host: darkstar.prodigy.com
X-Trace: newssvr05-en0.news.prodigy.com 980457792 182944 192.168.190.236 (25 Jan 2001 21:23:12 GMT)
X-Complaints-To: abuse@prodigy.net
NNTP-Posting-Date: 25 Jan 2001 21:23:12 GMT
Originator: davidsen@darkstar.prodigy.com