View Single Post
  #4 (permalink)  
Old July 26th, 2004, 07:49 AM
bmains bmains is offline
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Hey,

You need to change this:

set objregx
objregx.pattern = "(1-)?\d{3,}-\d{3,}-\d{4,}"

to this:

set objregx = New RegExp
objregx.pattern = "(1-)?\d{3,}-\d{3,}-\d{4,}"

I don't know why you do it in this manner... everything else is done through CreateObject(), but in all of the examples that I've seen, this is how it is done. Let me know if that works out for you. It may be Regex instead; I can't remember because when .NET came out, they renamed the library.

Brian
Reply With Quote