[Help] propertyregex global attribute not working
"SourceForge.net" <[email protected]> Tue, 18 May 2010 10:53:33 +0000
| Newsgroups | gmane.comp.java.ant-contrib.devel |
|---|---|
| Message-ID | <[email protected]> |
The following forum message was posted by biaib at http://sourceforge.net/projects/ant-contrib/forums/forum/113701/topic/3713234: Hillo, I must use a global replacement regex, but <propertyregex> only match the first occurence. Here\'s the code: [code]<propertyregex property=\"append.order.min\" input=\"bla,blabla,tic\" regexp=\"([^,]+)\" select=\"\\1-min.js\" global=\"true\" defaultValue=\"fail\" />[/code] append.order.min returns [code]\'bla-min.js\' [/code] instead [code]\'bla-min.js,blabla-min.js,tic-min.js\'[/code] I\'ve check my regex with http://gskinner.com/RegExr/, and it work there. the documentation say this about attribute global: global : Should a replacement operation be performed on the entire string, rather than just the first occurance Not required. default is false. Am I missing something or this is a bug ? ------------------------------------------------------------------------------