topical media & game development

talk show tell print

basic-regex-20-TestForA.htm / htm



  <html>
  <head>
  <title>Test For Upper Case A</title>
  <script language="vbscript" type="text/vbscript">
  Function MatchTest
  Dim myRegExp, TestString
  Set myRegExp = new RegExp
  myRegExp.Pattern = "A"
  TestString = "Andrew"
  If myRegExp.Test(TestString) = True Then
    MsgBox "The test string '" & TestString & "' matches the pattern '" & myRegExp.Pattern & "'."
  Else
    MsgBox "There is no match."
  End If
  End Function
  
  </script>
  </head>
  <body onload="MatchTest">
  
  </body>
  </html>


(C) Æliens 20/2/2008

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.