DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=30456>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=30456 replaceregexp fails to insert '/' characters [EMAIL PROTECTED] changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID ------- Additional Comments From [EMAIL PROTECTED] 2004-08-04 08:14 ------- I'm marking this as invalid. you have been caught out by quirks of platform portability. I believe your code would work as is on unix BTW. 1. If this is run from directory 'C:\projects\TestBug\src\from', the value of ${basedir} should be "C:\projects\TestBug\src", That is, the directory separators are backslashes, not forward slashes, as they are in the form that is most appropriate to the platform. 2. regexp code treats backslashes specially (see http://java.sun.com/j2se/1.4.2/docs/api/java/util/regex/Pattern.html) so the directory separators were turned into backslashes, which then caused the regexp engine to treat the following chars as special patterns. At least I think that is it, regexp patterns are complex little beasts. Use <pathconvert> to turn basedir into a unix-like path before running your regexp, and all should be well. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]