Полезная информация

Microsoft® JScript™
exec Method
 Language Reference 
Version 3 

See Also                  Applies To

Executes a search for a match in a specified string.

The exec method syntax has these parts:

Part Description
rgexp Required. A Regular Expression object. Can be a variable name or a literal.
str Required. The string to perform a search on.

The results of an exec method search are placed into an array.

If the exec method does not find a match, it returns null. If it finds one or more matches, the exec method returns an array, and the RegExp object is updated to reflect the results of the search.

© 1997 Microsoft Corporation. All rights reserved. Terms of Use.