See Also Applies To
Description
Tests whether a pattern exists in a string.
Syntax
rgexp.test(str)
The test 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 test a search on.
Remarks
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.
© 1997 by Microsoft Corporation. All rights reserved.
file: /Techref/inet/iis/jscript/htm/js730.htm,
2KB, , updated: 2008年2月2日 04:03, local time: 2025年9月11日 10:59,
©2025 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE.
Questions?<A HREF="http://techref.massmind.org/Techref/inet/iis/jscript/htm/js730.htm"> test Method</A>
Did you find what you needed?
Welcome to massmind.org!
Welcome to techref.massmind.org!
.