Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 6431 invoked from network); 27 Sep 2004 03:08:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 27 Sep 2004 03:08:02 -0000 Received: (qmail 80097 invoked by uid 500); 27 Sep 2004 03:08:00 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 79696 invoked by uid 500); 27 Sep 2004 03:07:58 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 79683 invoked by uid 99); 27 Sep 2004 03:07:57 -0000 X-ASF-Spam-Status: No, hits=0.6 required=10.0 tests=FROM_ENDS_IN_NUMS,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of aok123@bellsouth.net designates 205.152.59.66 as permitted sender) Received: from [205.152.59.66] (HELO imf18aec.mail.bellsouth.net) (205.152.59.66) by apache.org (qpsmtpd/0.28) with ESMTP; Sun, 26 Sep 2004 20:07:57 -0700 Received: from [172.16.1.8] ([65.80.200.112]) by imf18aec.mail.bellsouth.net (InterMail vM.5.01.06.11 201-253-122-130-111-20040605) with ESMTP id <20040927030755.DVQU1790.imf18aec.mail.bellsouth.net@[172.16.1.8]> for ; Sun, 26 Sep 2004 23:07:55 -0400 Subject: [RT] Is a CL like wrapper for RE feasible? From: Alex Karasulu To: commons-dev@jakarta.apache.org Content-Type: text/plain Message-Id: <1096254666.2165.29.camel@fermi.trunk.joshua-tree.org> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Sun, 26 Sep 2004 23:11:06 -0400 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hello, I started looking at some code which uses both ORO and Regexp in various places. Most of the code is targeted for 1.4 and up so there is a possibility for using 1.4 regular expressions as well. Looking at the RE landscape and at the logging landscape one quickly asks, "is there room here for a commons-logging like wrapper but for regular expression implementations?" Is there a way to wrap RE implementations? At a cursory glance I would guess so. It wouldn't be that difficult to abstract away the interfaces the same way CL has for logging implementations. However there seems to be a very subtle distinction to the logging-wrapper use case from what would be regex-wrapper usage. A logging implementation is a choice. Meaning any implementation can be used so long as it is supported by CL. They all will work in the end. This is not necessarily the case for a RE wrapper where some implementations may not support the same RE syntax. So the implementation choice is somewhat restricted when the RE syntax is chosen. Not every implementation is necessarily viable. Makes me wonder ... is this the reason why there is no commons-regex? Alex --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org