Mercurial > hg > octave-nkf
diff NEWS @ 14543:e47d929fde8f
process backslash string escapes in regexp pattern and regexprep replacement (bug #35911)
* regexp.cc (do_regexp_string_escapes): New function.
(octregexp, octregexprep): Process backslash string escapes in
single-quoted pattern string.
(octregexprep): Process backslash string escapes in single-quoted
replacement string.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 10 Apr 2012 17:14:24 -0400 |
parents | 6d5c951ec520 |
children | be18c9e359bf |
line wrap: on
line diff
--- a/NEWS +++ b/NEWS @@ -13,6 +13,11 @@ where the pattern is actually the assertion '^' or start-of-line. + ** For compatibility with Matlab, the regexp, regexpi, and regexprep + functions now process backslash escapes in single-quoted pattern + strings. The regexprep function now processes backslash escapes in + single-quoted replacement strings. + ** Redundant terminal comma accepted by parser A redundant terminal comma is now accepted in matrix