octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #37092] backslash escape character in regexp


From: Guillaume
Subject: [Octave-bug-tracker] [bug #37092] backslash escape character in regexp
Date: Tue, 14 Aug 2012 12:08:03 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20100101 Firefox/14.0.1

URL:
  <http://savannah.gnu.org/bugs/?37092>

                 Summary: backslash escape character in regexp
                 Project: GNU Octave
            Submitted by: gyom
            Submitted on: Tue 14 Aug 2012 12:08:02 PM GMT
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: Guillaume
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: Any

    _______________________________________________________

Details:

Using the backslash escape character returns an error in regexprep and Octave
dev with this call:

octave> regexprep('\','\\','backslash')
error: regexprep: \ at end of pattern at position 1 of expression


while it does not return the correct answer here:

octave> regexprep('\b','\\b','backslash')
ans = \b


It is fine with Octave 3.6.2.




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?37092>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]