From http://www.w3schools.com (Copyright Refsnes Data)

WMLScript find() Function


WMLScript String Library Complete WMLScript String Library

The find() function returns the position of a substring in a string.

Syntax

n = String.find(string, substring)

Part Description
n The integer returned from the function
string The string to search
substring The value to search for in the string

Example

var a = String.find("world","rl");
var b = String.find("world","hi");
var c = String.find("world","wo");

Result

a = 2
b = -1
c = 0


WMLScript String Library Complete WMLScript String Library

From http://www.w3schools.com (Copyright Refsnes Data)