- Scilab Help
- Strings
- ascii
- asciimat
- blanks
- char
- convstr
- emptystr
- evstr
- grep
- isalphanum
- isascii
- isdigit
- isletter
- isnum
- justify
- length
- part
- prettyprint
- regexp
- sci2exp
- strcat
- strchr
- strcmp
- strcspn
- strindex
- string
- stripblanks
- strncpy
- strrchr
- strrev
- strsplit
- strspn
- strstr
- strsubst
- strtod
- strtok
- tokenpos
- tokens
Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function
strstr
Tail of a string starting from the 1st occurrrence of a given fragment
Syntax
Tail = strstr(Strings, StartingFragment)
Arguments
- Strings, StartingFragment, Tail
Matrices of strings, of identical dimensions.
StartingFragments
can be a single string. It is then used for allStrings
components.
Description
Tail = strstr(Strings, StartingFragment)
builds and returns a matrix
of strings such that, for each element Strings(i)
, Tail(i)
is the part of Strings(i)
starting from the first occurrence of
startingFragment(i)
, up to the end of Strings(i)
.
If StartingFragment(i)
is not found in Strings(i)
,
Tail(i)
is set to ""
.
Examples
strstr('This is a simple string','simple') strstr('This is a simple string','sample') strstr(['This is a simple string','in scilab'],'is') strstr(['This is a sample string','in scilab'],['a','scilab'])
See also
Report an issue | ||
<< strspn | Strings | strsubst >> |