WMLScript find() Function
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
Complete WMLScript String Library
Learn XML with <oXygen/> XML Editor - Free Trial!
|
|
oXygen helps you learn to define,
edit, validate and transform XML documents. Supported technologies include XML Schema,
DTD, Relax NG, XSLT, XPath, XQuery, CSS.
Understand in no time how XSLT and XQuery work by using the intuitive oXygen debugger!
Do you have any XML related questions? Get free answers from the oXygen
XML forum
and from the video
demonstrations.
Download a FREE 30-day trial today!
|
|