Bookshelf Home | Contents | Index | Search | PDF |
Siebel eScript Language Reference > Siebel eScript Commands > The Clib Object >
Clib.strpbrk() Method
This method searches a string for any of several specified characters and returns the string beginning at the first instance of one of the specified characters.
Syntax
Clib.strpbrk(string, charSet)
Returns
The string beginning at the first instance of one of the specified characters in the charSet parameter; otherwise, null, if none is found.
Usage
This method searches string for any of the characters specified in charSet.
When possible, you should use the standard JavaScript method substring() (read string.replace() Method).
Example
For an example using this function, read Clib.strcspn() Method. To accomplish the same result using standard JavaScript methods, read string.replace() Method.
See Also
Clib.strchr() Method, Clib.strcspn() Method, and string.replace() Method
Bookshelf Home | Contents | Index | Search | PDF |
Siebel eScript Language Reference Published: 18 April 2003 |