From owner-freebsd-questions@FreeBSD.ORG Thu Jan 14 23:46:19 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 642FB1065672 for ; Thu, 14 Jan 2010 23:46:19 +0000 (UTC) (envelope-from rwmaillists@googlemail.com) Received: from mail-ew0-f211.google.com (mail-ew0-f211.google.com [209.85.219.211]) by mx1.freebsd.org (Postfix) with ESMTP id E4D4F8FC1C for ; Thu, 14 Jan 2010 23:46:18 +0000 (UTC) Received: by ewy3 with SMTP id 3so126501ewy.13 for ; Thu, 14 Jan 2010 15:46:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:in-reply-to:references:x-mailer:mime-version :content-type:content-transfer-encoding; bh=t2iJ4N3h6npDG14u44BqyqXInx157whlFtDdhiFXICM=; b=MwUl7Tynx+P8df8d3haBOB4vUxKMJ0ppGzZspGGNafbByMVJN164obs7/PkCbWd6Ce J1CgQ5suWT/fPAfdEOHQPyZ1v9aUlRb0D0vNhT8ZZCRb5y6u7EU3M8P9CT010oqt/diH lmrNCKHUp/21DFRd5h2Sn97hXQp0Uutypj2V8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=date:from:to:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type:content-transfer-encoding; b=ZgKRFCJU3o1/MPCn2uwDggwlHElDT/O0yPbjSiYaWBgwvNFKfuvtuaS/hR6nnJBhGU MEgmYA2ReYQW79ITB64nSyPRJc/ckkwGFLoIBI28Ne5FwQ/1jw8C0yIdU8syWTKseh0l 71gL/D3BxEWmenZCjEN5pzTYmU6uCoGLBZKXQ= Received: by 10.213.42.70 with SMTP id r6mr98940ebe.41.1263512771685; Thu, 14 Jan 2010 15:46:11 -0800 (PST) Received: from gumby.homeunix.com (bb-87-81-140-128.ukonline.co.uk [87.81.140.128]) by mx.google.com with ESMTPS id 16sm994769ewy.2.2010.01.14.15.46.07 (version=SSLv3 cipher=RC4-MD5); Thu, 14 Jan 2010 15:46:10 -0800 (PST) Date: Thu, 14 Jan 2010 23:45:59 +0000 From: RW To: freebsd-questions@freebsd.org Message-ID: <20100114234559.2aaed7fc@gumby.homeunix.com> In-Reply-To: References: <866374fs5q.fsf@blue.stonehenge.com> X-Mailer: Claws Mail 3.7.3 (GTK+ 2.18.5; i386-portbld-freebsd8.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: Regular Expression Editor X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Jan 2010 23:46:19 -0000 On Thu, 14 Jan 2010 14:24:49 -0500 Carmel wrote: > On Thu, 14 Jan 2010 10:38:41 -0800 > Randal L. Schwartz replied: > > >You need to be specific about the kind of regex. While most regexp > >engines have common things like . and * and ^ and $, the meanings may > >vary a bit, and the more exotic things are certainly going to vary. > > > >(For example, despite the name, "Perl Compatible [sic] Regular > >Expressions" are *not* Perl compatible.) > > > >What tool are you using your regexes with? > > OK, I was using RegExp Buddy on a Windows > machine. I would like to find something similar to it for a FreeBSD > environment. The expressions I create are used primarily with 'sieve' > in conjunction with Dovecot. I am also thinking of possibly creating a > few for use with Postfix. > Try this http://www.fastmail.fm/docs/sieve/sievetest.php It's based on Cyrus but AFAIK they both use the libc regex implementation. Sieve is a little odd in that you need double escaping In general I think most people would use command line tools to test expressions.