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::lastMatchNetscape Only Feature


RegExp.lastMatch
 
This property is the last matched characters. As this property is static, you always use RegExp.lastMatch. For example, the following code would search through the string "the fisherman's tale" for a match with the regular expression of two consonants, one or more vowels and two consonants. In this case it will match the 'sherm' of 'fisherman'.
 
Code:
rexp = /([^aeiou\s]){2}([aeiou])+([^aeiou\s]){2}/
rexp("the fisherman's tale")

 
Output:
sherm

 


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