File Exchange

image thumbnail

strrep variants for case-insensitive

version 1.0.0 (1.67 KB) by raym
strrep variants for case-insensitive

2 Downloads

Updated 07 Jun 2019

View License

strrep variants for case-insensitive:
strrepi(str,A,b) replace a to b with a case insensitive in str.
strrepn(str,a1,b1,a2,b2,...) multiple replace with pairs of replacement.
strrepin(str,A1,b1,A2,b2,...) multiple replace with A1,A2 case inseisitive in str.

Cite As

raym (2021). strrep variants for case-insensitive (https://www.mathworks.com/matlabcentral/fileexchange/71777-strrep-variants-for-case-insensitive), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (3)

JY Wong

KAE

Some examples may be helpful

strrepi('ABCdef', 'abc', 'ghi') % Matches abc in ABC, replaces with lowercase ghi
'ghidef'

strrepi('ABCdef', 'abc', 'GHI') % Matches abc in ABC, replaces with uppercase GHI
'GHIdef'

Chang hsiung

MATLAB Release Compatibility
Created with R2019a
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!