Re: Capitalize property value

2008-01-31 Thread Alain ROY
Thanks for the link. There's an example to capitalize all words with more than 2 characters. Search string is : "\\w{2,}" Replace string is : "\\L\\u$&" I tried : 1) With : I get : a foo and a BAR --> ${dst} 2) With :

Re: Capitalize property value

2008-01-31 Thread Dale Anson
The StringUtils task from the Antelope project will do it: http://antelope.tigris.org/nonav/docs/manual/bk03ch13.html Here's an example: prop2 before = ${prop2} prop2 after = ${prop2} StringUtils will also do

Re: Capitalize property value

2008-01-31 Thread Robin Chaddock
Java's regex replace supports case conversion -> http://www.javaregex.com/tutorial5.html So you should be able to do it through the propertyregexp task. Alain ROY wrote: Hi all I need to capitalize a property value. I tried using regular expressions and the Antcontrib propertyregexp task, bu

Capitalize property value

2008-01-31 Thread Alain ROY
Hi all I need to capitalize a property value. I tried using regular expressions and the Antcontrib propertyregexp task, but it doesn't work. I don't know how to specifiy the uppercase value of the matched string in the replacement string. Is there a way to do so without developping a filter ja