You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
function result=perl_regexp_rep(instr,regexstr,repstr)
% executes a perl regex match or substitution
% it can replace REGEXP or REGEXPREP
%
%>> perl_regexp_rep( ...
% 'the quick brown fox jumped over the lazy dog', ...
% 'e.*?e')
% ans = e quick brown fox jumpe
%
%>> perl_regexp_rep( ...
% 'the quick brown fox jumped over the lazy dog', ...
% 'e.*?e','<sub>')
% ans = th<sub>d over the lazy dog
function result=perl2(command)
% executes a perl one-liner
%
% IT'S NOT FANCY BUT IT WORKS
% michael.robbins@us.cibc.com
% robbins@bloomberg.net
Cite As
Michael Robbins (2026). perl_regex_rep (https://www.mathworks.com/matlabcentral/fileexchange/2591-perl_regex_rep), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.0.0.0 (415 Bytes)
-
No License
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0.0 | Several typographic errors. |
