commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oliver Heger <heg...@med.uni-marburg.de>
Subject Re: How to get the entire string with Configuration.getString
Date Wed, 30 Mar 2005 10:20:59 GMT
Oh, I forgot an important point: you can escape the delimiter using a 
backslash. So if your configuration file contains:

<scc task_expression="(^|\\s)#([1-9][0-9]{3\,})" />

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?
>>
>> <scc task_expression="(^|\\s)#([1-9][0-9]{3,})" />
>>
>> 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


Mime
View raw message