perl_regex_rep

Version 1.0.0.0 (415 octets) par Michael Robbins
Executes perl one-liner, match or substitution.
2,4K téléchargements
Mise à jour 15 nov. 2004

Aucune licence

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

Citation pour cette source

Michael Robbins (2024). perl_regex_rep (https://www.mathworks.com/matlabcentral/fileexchange/2591-perl_regex_rep), MATLAB Central File Exchange. Récupéré le .

Compatibilité avec les versions de MATLAB
Créé avec R13
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux
Catégories
En savoir plus sur Counter and Timer Input and Output dans Help Center et MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Publié le Notes de version
1.0.0.0

Several typographic errors.