From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11795 invoked from network); 20 Jun 2004 11:49:45 -0000 Received: from thor.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.86) by ns1.primenet.com.au with SMTP; 20 Jun 2004 11:49:45 -0000 Received: (qmail 18514 invoked from network); 20 Jun 2004 11:49:25 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 20 Jun 2004 11:49:25 -0000 Received: (qmail 11930 invoked by alias); 20 Jun 2004 11:48:52 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7566 Received: (qmail 11920 invoked from network); 20 Jun 2004 11:48:52 -0000 Received: from thor.dotsrc.org (HELO a.mx.sunsite.dk) (qmailr@130.225.247.86) by sunsite.dk with SMTP; 20 Jun 2004 11:48:49 -0000 Received: (qmail 17501 invoked from network); 20 Jun 2004 11:48:48 -0000 Received: from conure.mail.pas.earthlink.net (207.217.120.54) by a.mx.sunsite.dk with SMTP; 20 Jun 2004 11:48:47 -0000 Received: from h-66-167-188-5.hstqtx02.dynamic.covad.net ([66.167.188.5] helo=amdxp.kalama.no-ip.org) by conure.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 1Bc0oX-0004oW-00 for zsh-users@sunsite.dk; Sun, 20 Jun 2004 04:48:45 -0700 Received: from [10.0.1.2] (mothership.kalama.no-ip.org [10.0.1.2]) by amdxp.kalama.no-ip.org (Postfix) with ESMTP id 6D70226E for ; Sun, 20 Jun 2004 06:48:45 -0500 (CDT) Mime-Version: 1.0 (Apple Message framework v618) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: Content-Transfer-Encoding: 7bit Reply-To: zsh-users@sunsite.dk From: lists Subject: pcre module help Date: Sun, 20 Jun 2004 06:49:01 -0500 To: zsh-users@sunsite.dk X-Mailer: Apple Mail (2.618) X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, hits=-1.4 required=6.0 tests=BAYES_20 autolearn=no version=2.63 X-Spam-Hits: -1.4 Hi, Can anyone provide an example for using the pcre module? I've looked at the documentation and am unclear on what exactly pcre_compile, pcre_study, and pcre_match do. Is in necessary to "compile" a pcre before using it? Basically, I had intended on using the pcre module like this: if [[ $variable == pcre ]] ; then blah fi Thanks, Ryan