MATLAB Answers

per isakson

When was 'tokenize' dropped from regexprep?

Asked by per isakson
on 26 Oct 2017
Latest activity Commented on by Cedric Wannaz
on 30 Oct 2017
With R2016a I get this warning
>> regexprep( 'abc123def', '(\d{3})', '.$1.', 'tokenize' )
Warning: The 'tokenize' option for regexprep is now the default behavior.
ans =
Which was the first release in which 'tokenize' was the default? I don't find 'tokenize' in the current documentation. Will it be dropped altogether?


Sign in to comment.

1 Answer

Answer by Cedric Wannaz
on 27 Oct 2017
Edited by Cedric Wannaz
on 27 Oct 2017
 Accepted Answer

You'll have to write a book about regexp after all these threads ;-)
EDIT: found it mentioned in the PDF release note "The MATLAB 7.0.4 Release Notes describe the changes introduced in the latest version of MATLAB for R14SP2" to be precise.


Cedric, thanks for the reference.
MATLAB 7.0.4 Release Note: Default Tokenizing — The regexprep function
now tokenizes by default. There is no longer a 'tokenize' option
My pleasure, and let me know the ISBN if you publish anything ;-)

Sign in to comment.