Translate text into regular expression
newStr = regexptranslate(
translates op
,str
)str
into
a regular expression and returns the result in newStr
.
You can use newStr
as a regular expression in the regexp
, regexpi
,
and regexprep
functions. The input argument op
specifies
the type of translation that regexptranslate
performs.
For example, if you specify op
as 'escape'
,
then regexptranslate
translates special characters
in str
so that they are literal characters in the
output. newStr
has the same data type as str
.
contains
| regexp
| regexpi
| regexprep
| replace
| strfind
| strjoin
| strrep
| strsplit