Count Characters

The function returns the number of characters in a copied text, discarding desired one.
1 Download
Updated 27 Apr 2021

View License

This function is of help if you want to count the characters of a text without considering some (e.g. special characters, citations, ...).
To use it, copy the text and just run the function.
If you want to exclude characters, you need to pass a regular expression (e.g. '( ){0,1}\[.*?\]' removes Zettlr inline citations) as argument (see https://it.mathworks.com/help/matlab/ref/regexp.html and use https://regex101.com/ to test your expressions).

Cite As

Valerio Rubino (2024). Count Characters (https://www.mathworks.com/matlabcentral/fileexchange/91110-count-characters), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2021a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0