Mon 29 Jun 2015 03:58:39 PM UTC, comment #10:
I changed this on the development branch in this cset (http://hg.savannah.gnu.org/hgweb/octave/rev/b6a59cc96bfa).
|
Mon 29 Jun 2015 03:14:15 PM UTC, comment #9:
No problem, answering the questions is a lot less work than coming up with them:
|
Mon 29 Jun 2015 03:11:56 PM UTC, comment #8:
Sorry for so many questions, but I keep finding subtle points.
What does Matlab return for
|
Mon 29 Jun 2015 06:48:00 AM UTC, comment #7:
I get
|
Mon 29 Jun 2015 03:22:43 AM UTC, comment #6:
This seems to be buggy Matlab behavior. Escape sequences are not processed in ordinary single-quoted strings. Okay, that is the same as Octave.
In places where a single-quoted string does undergo escape processing, such as the format string for the *printf family of functions, Matlab does strict validation and warns when an escape sequence is invalid. Okay, that is also the same as Octave.
So only in the replacement string of regexprep are escape sequences simply converted the the character that follows the backslash? Sigh.
I changed the Item Group to 'WTF Matlab!?!'. I can change this in Octave, but it screws up strsplit.m which then needs recoding. Just to be certain, what do these return?
|
Fri 26 Jun 2015 11:49:14 PM UTC, comment #5:
|
Fri 26 Jun 2015 03:01:58 PM UTC, comment #4:
Hmm, this is starting to look like very esoteric Matlab behavior.
What does Matlab do for
|
Fri 26 Jun 2015 06:53:57 AM UTC, comment #3:
I take it you mean sprintf?
|
Fri 26 Jun 2015 05:02:50 AM UTC, comment #2:
To simplify, what does Matlab return for the following
|
Thu 25 Jun 2015 02:58:49 PM UTC, comment #1:
Hmm, I meant:
In Octave:
|
Thu 25 Jun 2015 02:52:44 PM UTC, original submission:
In Matlab when you pass an escaped string to regexprep, it is returned 'unescaped' but not in Octave, e.g.
in Octave:
in Matlab:
|