Quick References
      ADO
      ASP
      CSS2
      HTML
      JavaScript
      Jet SQL
      VBScript
      WML
      WMLScript
      WSH
      XHTML
      XML DOM
      XSLT

Features
      Knowledge Base
      Tutorials

Partners
     ZVON.ORG
     XML
     Planet Source Code
     VisualBuilder
     Web Design
     Your HTML Source
     XML/XSLT Forums
     ASPAlliance
     Scripts
     
     Programmers Heaven
     Tek-Tips Forums
     Developer Fusion
     Code Project











PROPERTY:  RegExp::lastParenNetscape Only Feature


RegExp.lastParen
 

 
This property contains the last matched parenthesized substring (if any), and as a static property is always refered to using RegExp.lastParen. For example, the following code uses a regular expression containing three parenthesized substrings to search for a match in the string "the fisherman's tale". After successfully matching the substring 'sherm', the lastParen property will hold the value 'r', which is the match made by the last parenthesized substring (any consonant).
 
Code:
rexp = /([^aeiou\s]){2}([aeiou])+([^aeiou\s]){2}/
rexp("the fisherman's tale")

 
Output:
r

 


Copyright 1999-2005 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information