commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From T E Schmitz <m...@numerixtechnology.de>
Subject Re: [Re: [configuration] specify a regular expression as string property]
Date Thu, 22 Apr 2004 08:53:07 GMT
Sorry guys, that doesn't work either :-(

I had tried that before; and tried it again:

biz.objects.brand.regex=.{0\,30}
Object o = config.getProperty("biz.objects.brand.regex");
logger.info ("REGEX " + o + " " + o.getClass());

Message: REGEX [.{0, 30}] class java.util.ArrayList


Regards,

Tarlika


Oliver Heger wrote:

> Yes, you are right. A backslash should do the trick. 
> 
> 
> Tatu Vanhanen schrieb:
> 
>> The PropertiesTokenizer lets you escape commas with a backslash ('\'). So
>> the getString() should return a regular expression string with the 
>> commas,
>> right?
>>
>> So have you tried
>> first.name.pattern=.{0\,30}
>>
>>
>> ---------------------------------------------------------------------
>> 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