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: Rik
Subject: [Octave-bug-tracker] [bug #37092] backslash escape character in regexp
Date: Wed, 15 Aug 2012 16:16:52 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:14.0) Gecko/20100101 Firefox/14.0.1

Update of bug #37092 (project octave):

              Item Group:        Incorrect Result => Matlab Compatibility   
                  Status:               Need Info => Confirmed              
             Open/Closed:                  Closed => Open                   

    _______________________________________________________

Follow-up Comment #4:

I'm going to re-open this issue.  From your testing, it appears that Octave is
interpreting escape character sequences twice which is not correct.  I am
going to change the Item Group to "Matlab Compatibility" since that is what is
really being chased here.

What I think is going on is the following:


regexprep ('\b', '\\b', 'backslash')

The pattern '\\b' is being searched for escape sequences.
The search finds '\\' and replaces it with '\'.
The pattern is now '\b'
I think the search then errors in thinking it has found another escape
sequence.


I am building a debug version of Octave and will check this out with gdb.


    _______________________________________________________

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]