jakarta-oro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 44154] - Error while using Perl5Util.substitute() method if it has "/" character.
Date Mon, 31 Dec 2007 18:38:25 GMT
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=44154>.
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=44154


dfs@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID




------- Additional Comments From dfs@apache.org  2007-12-31 10:38 -------
You're creating an invalid expression.  It works exactly the same way in Perl.
If your foo and/or bar within /foo/bar/ contains /, either use a different
character than / that isn't contained in foo and bar or escape all the /'s in
foo and bar.  You may find it more appropriate to use
org.apache.oro.text.regex.Util.substitute, where you don't have to worry about
the contents of the substitution and can scrub a dynamically generated pattern
with Perl5Compiler.quotemeta before compiling it.

You can get support via the oro-user mailing list first before reporting a bug
through the issue tracking system.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: oro-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: oro-dev-help@jakarta.apache.org


Mime
View raw message