From oro-taylorjay@example.net Fri Aug 23 15:36:40 2002
Return-Path: <oro-taylorjay@example.net>
Delivered-To: taylorjay@example.net
Received: (qmail 30328 invoked from network); 23 Aug 2002 15:36:40 -0000
Received: from unknown (HELO nagoya.betaversion.org) (83.161.120.155)
  by daedalus.apache.org with SMTP; 23 Aug 2002 15:36:40 -0000
Received: (qmail 20546 invoked by uid 97); 23 Aug 2002 15:37:10 -0000
Delivered-To: taylorjay@example.net
Received: (qmail 20500 invoked by uid 97); 23 Aug 2002 15:37:09 -0000
Mailing-List: contact taylorjay@example.net; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:taylorjay@example.net>
List-Subscribe: <mailto:taylorjay@example.net>
List-Help: <mailto:taylorjay@example.net>
List-Post: <mailto:taylorjay@example.net>
List-Id: "ORO Developers List" <oro-dev.jakarta.apache.org>
Reply-To: "ORO Developers List" <taylorjay@example.net>
Delivered-To: mailing list taylorjay@example.net
Received: (qmail 20482 invoked by uid 50); 23 Aug 2002 15:37:08 -0000
Date: 23 Aug 2002 15:37:08 -0000
Message-ID: <taylorjay@example.net>
From: taylorjay@example.net
To: taylorjay@example.net
Cc:
Subject: DO NOT REPLY [Bug 11976] New:  - 
    Missing functionality in Perl5Util.substitute( )
X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11976>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11976

Missing functionality in Perl5Util.substitute( )

           Summary: Missing functionality in Perl5Util.substitute( )
           Product: ORO
           Version: 2.0
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Main
        AssignedTo: taylorjay@example.net
        ReportedBy: taylorjay@example.net


I want to substitute \n in a file with \n.  (That is, the text \n with a 
carriage return).  In regular Perl, the following works: s/\\n/\n
However, util.substitute("s/\\n/\n",<String>); did not work (it printed 
out "\n" instead of doing a carriage return).  The regular substitution worked 
fine (e.g. util.substitute("s/@/\n",<String>) resulted in "@" being replaced by 
carriage returns.

--
To unsubscribe, e-mail:   <mailto:taylorjay@example.net>
For additional commands, e-mail: <mailto:taylorjay@example.net>


From oro-taylorjay@example.net Fri Aug 23 16:06:40 2002
Return-Path: <oro-taylorjay@example.net>
Delivered-To: taylorjay@example.net
Received: (qmail 71837 invoked from network); 23 Aug 2002 16:06:40 -0000
Received: from unknown (HELO nagoya.betaversion.org) (83.161.120.155)
  by daedalus.apache.org with SMTP; 23 Aug 2002 16:06:40 -0000
Received: (qmail 26941 invoked by uid 97); 23 Aug 2002 16:07:09 -0000
Delivered-To: taylorjay@example.net
Received: (qmail 26924 invoked by uid 97); 23 Aug 2002 16:07:09 -0000
Mailing-List: contact taylorjay@example.net; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:taylorjay@example.net>
List-Subscribe: <mailto:taylorjay@example.net>
List-Help: <mailto:taylorjay@example.net>
List-Post: <mailto:taylorjay@example.net>
List-Id: "ORO Developers List" <oro-dev.jakarta.apache.org>
Reply-To: "ORO Developers List" <taylorjay@example.net>
Delivered-To: mailing list taylorjay@example.net
Received: (qmail 26909 invoked by uid 50); 23 Aug 2002 16:07:08 -0000
Date: 23 Aug 2002 16:07:08 -0000
Message-ID: <taylorjay@example.net>
From: taylorjay@example.net
To: taylorjay@example.net
Cc:
Subject: DO NOT REPLY [Bug 11976]  - 
    Missing functionality in Perl5Util.substitute( )
X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11976>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11976

Missing functionality in Perl5Util.substitute( )

taylorjay@example.net changed:

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



------- Additional Comments From taylorjay@example.net  2002-08-23 16:07 -------
This is not a bug. You need to use one more escape:

  public static final void main(String args[]) {
    Perl5Util perl = new Perl5Util();
    String input = "foo\\nbar\\nbaz\\n";

    System.out.print(perl.substitute("s/\\\\n/\n/g", input));
    System.out.flush();
  }

Please follow the instructions at http://jakarta.apache.org/oro/bugs.html
before reporting a bug.  It is a lot less time consuming to answer an email
to correct user error than it is to invalidate and close invalid bugs.  The
bug tracking system is for feature requests and real bugs.  It is not an
excuse to bypass the user support system (i.e., the oro-user mailing list).
Please see http://jakarta.apache.org/site/mail.html for instructions on how
to subscribe.

--
To unsubscribe, e-mail:   <mailto:taylorjay@example.net>
For additional commands, e-mail: <mailto:taylorjay@example.net>


From oro-taylorjay@example.net Fri Aug 23 16:07:06 2002
Return-Path: <oro-taylorjay@example.net>
Delivered-To: taylorjay@example.net
Received: (qmail 72651 invoked from network); 23 Aug 2002 16:07:05 -0000
Received: from unknown (HELO nagoya.betaversion.org) (83.161.120.155)
  by daedalus.apache.org with SMTP; 23 Aug 2002 16:07:05 -0000
Received: (qmail 27224 invoked by uid 97); 23 Aug 2002 16:07:35 -0000
Delivered-To: taylorjay@example.net
Received: (qmail 27188 invoked by uid 97); 23 Aug 2002 16:07:35 -0000
Mailing-List: contact taylorjay@example.net; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:taylorjay@example.net>
List-Subscribe: <mailto:taylorjay@example.net>
List-Help: <mailto:taylorjay@example.net>
List-Post: <mailto:taylorjay@example.net>
List-Id: "ORO Developers List" <oro-dev.jakarta.apache.org>
Reply-To: "ORO Developers List" <taylorjay@example.net>
Delivered-To: mailing list taylorjay@example.net
Received: (qmail 27168 invoked by uid 50); 23 Aug 2002 16:07:34 -0000
Date: 23 Aug 2002 16:07:34 -0000
Message-ID: <taylorjay@example.net>
From: taylorjay@example.net
To: taylorjay@example.net
Cc:
Subject: DO NOT REPLY [Bug 11976]  - 
    Missing functionality in Perl5Util.substitute( )
X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11976>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11976

Missing functionality in Perl5Util.substitute( )

taylorjay@example.net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |CLOSED



------- Additional Comments From taylorjay@example.net  2002-08-23 16:07 -------
Closing bug because it was invalid.

--
To unsubscribe, e-mail:   <mailto:taylorjay@example.net>
For additional commands, e-mail: <mailto:taylorjay@example.net>


From oro-taylorjay@example.net Mon Aug 26 22:31:33 2002
Return-Path: <oro-taylorjay@example.net>
Delivered-To: taylorjay@example.net
Received: (qmail 12765 invoked from network); 26 Aug 2002 22:31:33 -0000
Received: from unknown (HELO nagoya.betaversion.org) (83.161.120.155)
  by daedalus.apache.org with SMTP; 26 Aug 2002 22:31:33 -0000
Received: (qmail 7529 invoked by uid 97); 26 Aug 2002 22:32:03 -0000
Delivered-To: taylorjay@example.net
Received: (qmail 7278 invoked by uid 97); 26 Aug 2002 22:32:01 -0000
Mailing-List: contact taylorjay@example.net; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:taylorjay@example.net>
List-Subscribe: <mailto:taylorjay@example.net>
List-Help: <mailto:taylorjay@example.net>
List-Post: <mailto:taylorjay@example.net>
List-Id: "ORO Developers List" <oro-dev.jakarta.apache.org>
Reply-To: "ORO Developers List" <taylorjay@example.net>
Delivered-To: mailing list taylorjay@example.net
Received: (qmail 7017 invoked by uid 50); 26 Aug 2002 22:31:59 -0000
Date: 26 Aug 2002 22:31:59 -0000
Message-ID: <taylorjay@example.net>
From: taylorjay@example.net
To: taylorjay@example.net
Cc:
Subject: DO NOT REPLY [Bug 11976]  - 
    Missing functionality in Perl5Util.substitute( )
X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11976>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11976

Missing functionality in Perl5Util.substitute( )





------- Additional Comments From taylorjay@example.net  2002-08-26 22:31 -------
Thank you very much for your extremely quick response.

I read the instructions and could not find where to send an email or post a
question, so posted a bug as a last resort.  I did a search on the
newsgroups and did not find any newsgroup that had any postings on the
subject.  I also tried to figure out the mailing lists thing without
success.  It is not at all clear to me what the heck I'm supposed to do. (Since 
originally writing this, I think I might have figurred out how to join the 
mailing list.  I'll find out.)

I tried 1, 2, and 3 escapes without success.  I didn't think of 4.  Perl
just needs 2. (After writing this I found some documentation which states the 
Java strings are quadruple-slashed.  I missed this the first time around.  I 
was naively thinking it should work the same as Perl.)

Thanks again for your help, and sorry to have used the bug system to bypass the 
regular channels.

--
To unsubscribe, e-mail:   <mailto:taylorjay@example.net>
For additional commands, e-mail: <mailto:taylorjay@example.net>



{'source': 'Apache Software Foundation Public Mail Archives'}