Scilab Function strsubst - substitute a character string by another in a character string.
Sequence d'appel
- str=strsubst(str1,str2,str3)
Parametres
- str1
: a matrix of character string. The strings where to search occurrences of str2
- str2
: a character string. The string to search in str1.
- str3
: a character string. The replacement string.
- str
: a matrix of character string. The result of the substitution on str2 by str3 in str1
Description
strsubst replaces all occurrences of str2 in str1 by str3.
Exemples
strsubst('SCI/demos/scicos','SCI','.')
strsubst('SCI/demos/scicos','/',' ')
Voir aussi