Difference between revisions of "STRSTR()"
From Recital Documentation Wiki
Yvonnemilne (Talk | contribs) |
Yvonnemilne (Talk | contribs) |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
==Purpose== | ==Purpose== | ||
− | + | Function to perform substring extraction | |
==Syntax== | ==Syntax== | ||
− | + | STRSTR(<expC1>, <expC2>) | |
==See Also== | ==See Also== | ||
− | + | [[AT()]], [[ATNEXT()]], [[INLIST()]], [[LEFT()]], [[OCCURS()]], [[RAT()]], [[RIGHT()]], [[SET STRESCAPE]], [[STR()]], [[STREXTRACT()]], [[STRTRAN()]], [[STUFF()]], [[SUBSTR()]] | |
==Description== | ==Description== | ||
− | + | The STRSTR() function returns a substring from <expC1> starting from <expC2> to the end of <expC1>. If <expC2> is not found, an empty string is returned. | |
==Example== | ==Example== | ||
<code lang="recital"> | <code lang="recital"> | ||
− | + | ? "Release information: " + strstr(version(2),"Released") | |
</code> | </code> | ||
− | |||
+ | ==Products== | ||
+ | Recital Server, Recital | ||
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
+ | [[Category:String Data]] | ||
+ | [[Category:String Data Functions]] |
Latest revision as of 14:24, 21 July 2010
Purpose
Function to perform substring extraction
Syntax
STRSTR(<expC1>, <expC2>)
See Also
AT(), ATNEXT(), INLIST(), LEFT(), OCCURS(), RAT(), RIGHT(), SET STRESCAPE, STR(), STREXTRACT(), STRTRAN(), STUFF(), SUBSTR()
Description
The STRSTR() function returns a substring from <expC1> starting from <expC2> to the end of <expC1>. If <expC2> is not found, an empty string is returned.
Example
? "Release information: " + strstr(version(2),"Released")
Products
Recital Server, Recital