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

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

[Octave-bug-tracker] [bug #35911] Backslash escaping in regexprep replac


From: Burkart Lingner
Subject: [Octave-bug-tracker] [bug #35911] Backslash escaping in regexprep replacement string incompatibility
Date: Wed, 28 Mar 2012 17:50:09 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:11.0) Gecko/20100101 Firefox/11.0

Follow-up Comment #2, bug #35911 (project octave):

Thanks for refreshing my memory regarding the different treatment of
single-quoted and double-quoted strings in Octave. So my MATLAB example


regexprep('foobar', '[fb]', '\') % single quotes replacement


equals


regexprep('foobar', '[fb]', "\") % double quotes replacement


in Octave, presumably for all escape sequences mentioned at
http://www.gnu.org/software/octave/doc/interpreter/Escape-Sequences-in-String-Constants.html#Escape-Sequences-in-String-Constants.

My question is, does this MATLAB incompatibility exist because nobody has
taken it on, yet, (which I would totally understand) or is there a consensus
amongst Octave developers that the current Octave behavior is actually
superior to MATLAB's, i.e. "it's not a bug, it's a feature"?

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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