Sun Chili!Soft ASP Sun Chili!Soft
ASP Sun Microsystems

 

JScript Regular Expression Object test Method

Tests whether a pattern exists in a string.

rgexp.test(str)

Arguments: JScript Regular Expression Object test Method

rgexp

A Regular Expression object. Can be a variable name or a literal. Required.

str

The string to test a search on. Required.

Remarks: JScript Regular Expression Object test Method

The test method checks to see if a pattern exists within a string and returns True if so, and False otherwise.

The RegExp object is not modified by the test method.

Copyright 2002 Sun Microsystems, Inc. All rights reserved. Legal Notice.