position

Returns the integer value representing the starting position of "string_expression1" in "string_expression2" or 0 when the "string_expression1" is not found.

Syntax

position ( string_expression1 , string_expression2 )

Example 1

position ( 'C' , 'ABCDEF' )

Result

3

Example 2

position ( 'H' , 'ABCDEF' )

Result

0