[Top][All Lists]
[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/
- [Octave-bug-tracker] [bug #35911] Backslash escaping in regexprep replacement string incompatibility, Burkart Lingner, 2012/03/20
- [Octave-bug-tracker] [bug #35911] Backslash escaping in regexprep replacement string incompatibility, Rik, 2012/03/25
- [Octave-bug-tracker] [bug #35911] Backslash escaping in regexprep replacement string incompatibility,
Burkart Lingner <=
- [Octave-bug-tracker] [bug #35911] Backslash escaping in regexprep replacement string incompatibility, Rik, 2012/03/28
- [Octave-bug-tracker] [bug #35911] Backslash escaping in regexprep replacement string incompatibility, John W. Eaton, 2012/03/28
- [Octave-bug-tracker] [bug #35911] Backslash escaping in regexprep replacement string incompatibility, Rik, 2012/03/29
- [Octave-bug-tracker] [bug #35911] Backslash escaping in regexprep replacement string incompatibility, Rik, 2012/03/29
- [Octave-bug-tracker] [bug #35911] Backslash escaping in regexprep replacement string incompatibility, Burkart Lingner, 2012/03/30
- [Octave-bug-tracker] [bug #35911] Backslash escaping in regexprep replacement string incompatibility, Jordi GutiƩrrez Hermoso, 2012/03/30
- [Octave-bug-tracker] [bug #35911] Backslash escaping in regexprep replacement string incompatibility, Burkart Lingner, 2012/03/30
- [Octave-bug-tracker] [bug #35911] Backslash escaping in regexprep replacement string incompatibility, John W. Eaton, 2012/03/30
- [Octave-bug-tracker] [bug #35911] Backslash escaping in regexprep replacement string incompatibility, John W. Eaton, 2012/03/30
- [Octave-bug-tracker] [bug #35911] Backslash escaping in regexprep replacement string incompatibility, Burkart Lingner, 2012/03/30