Difference between revisions of "STRSTR()"

From Lianjapedia
Jump to: navigation, search
m (Text replace - "Recital" to "Lianja")
Line 1: Line 1:
 
==Purpose==
 
==Purpose==
 
Function to perform substring extraction
 
Function to perform substring extraction
 
  
 
==Syntax==
 
==Syntax==
 
STRSTR(<expC1>, <expC2>)
 
STRSTR(<expC1>, <expC2>)
 
  
 
==See Also==
 
==See Also==
 
[[AT()]], [[ATNEXT()]], [[INLIST()]], [[LEFT()]], [[OCCURS()]], [[RAT()]], [[RIGHT()]], [[SET STRESCAPE]], [[STR()]], [[STREXTRACT()]], [[STRTRAN()]], [[STUFF()]], [[SUBSTR()]]
 
[[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.
 
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==
Line 19: Line 15:
 
? "Release information: " + strstr(version(2),"Released")
 
? "Release information: " + strstr(version(2),"Released")
 
</code>
 
</code>
 
  
 
==Products==
 
==Products==

Revision as of 11:12, 12 December 2012

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

Lianja Server, Lianja