Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 19827 invoked from network); 30 Mar 2005 10:21:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 30 Mar 2005 10:21:16 -0000 Received: (qmail 10835 invoked by uid 500); 30 Mar 2005 10:21:10 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 10812 invoked by uid 500); 30 Mar 2005 10:21:10 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 10790 invoked by uid 99); 30 Mar 2005 10:21:10 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from pcmbi15.med.Uni-Marburg.DE (HELO mailgate.med.uni-marburg.de) (137.248.254.138) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 30 Mar 2005 02:21:08 -0800 Received: from localhost (localhost [127.0.0.1]) by mailgate.med.uni-marburg.de (Postfix) with ESMTP id EC479A8AB0 for ; Wed, 30 Mar 2005 12:21:05 +0200 (CEST) Received: from mailgate.med.uni-marburg.de ([127.0.0.1]) by localhost (mailgate [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29401-03 for ; Wed, 30 Mar 2005 12:20:46 +0200 (CEST) Received: from post.med.uni-marburg.de (post.med.uni-marburg.de [137.248.253.12]) by mailgate.med.uni-marburg.de (Postfix) with ESMTP id 3F7DDA8B06 for ; Wed, 30 Mar 2005 12:20:46 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by post.med.uni-marburg.de (Postfix) with ESMTP id 2DEDD27048 for ; Wed, 30 Mar 2005 12:20:46 +0200 (CEST) Received: from post.med.uni-marburg.de ([127.0.0.1]) by localhost (post [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03888-08 for ; Wed, 30 Mar 2005 12:20:41 +0200 (CEST) Received: from [137.248.224.93] (wstlehre93.med.uni-marburg.de [137.248.224.93]) by post.med.uni-marburg.de (Postfix) with ESMTP id 104E32704E for ; Wed, 30 Mar 2005 12:20:41 +0200 (CEST) Message-ID: <424A7D8B.8090401@med.uni-marburg.de> Date: Wed, 30 Mar 2005 12:20:59 +0200 From: Oliver Heger User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: de, de-at, en-us, en MIME-Version: 1.0 To: Jakarta Commons Users List Subject: Re: How to get the entire string with Configuration.getString References: <20050330091034.AECA41180CE@smtp.codebeamer.com> <424A6FD5.7000200@med.uni-marburg.de> In-Reply-To: <424A6FD5.7000200@med.uni-marburg.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at med.uni-marburg.de X-Virus-Scanned: by amavisd-new at med.uni-marburg.de X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Oh, I forgot an important point: you can escape the delimiter using a backslash. So if your configuration file contains: the entire string should be returned. Oliver Oliver Heger wrote: > You have hit a known limitation: The configuration interprets the "," as > a property delimiter and inserts two values for this key. For more > details see here: > > http://issues.apache.org/bugzilla/show_bug.cgi?id=29716 > > So config.getString("scc[@task_expression](0)") will return the first > part of the expression and config.getString("scc[@task_expression](1)") > the part behind the ",". > > Oliver > > Zsolt Koppany wrote: > >> Hi, >> >> Configuration (XmlConfiguration) getString returns >> "(^|\\s)#([1-9][0-9]{3" for config.getString("scc[@task_expression]"). >> How can I get the entire >> String? >> >> >> >> I use 1.1RC2. >> >> Zsolt >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org >> For additional commands, e-mail: commons-user-help@jakarta.apache.org >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: commons-user-help@jakarta.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org