On 10/16/2012 01:28 PM, Michael D.
Godfrey wrote:
On 10/16/2012 12:29 PM, Rik wrote:
regexprep ('a', '(\w)', "\\$1")
Should it be '\a' or '$1'?
In the first case, one would get the same result from using a replacement
pattern of '\\$1' or "\\$1" which is odd because usually single quotes and
double quotes are not interchangeable. On the other hand, Perl would
return '\a' for the regexprep above.
Matlab
R2009b returns '\a'
Matlab has support for double-quoted strings now? I thought they
didn't support them, and this was only an Octave behavior question.
--Rik
|