View Single Post
  #2 (permalink)  
Old September 9th, 2004, 04:45 AM
pgtips pgtips is offline
Friend of Wrox
Join Date: Jun 2003
Posts: 1,212
Thanks: 0
Thanked 1 Time in 1 Post

You shouldn't be surprised that your regexp matches the part you've asked it to match! The part in parentheses will be in yourmatch.SubMatches(0)

you can test whether there's anything there by first checking that
yourmatch.SubMatches.Count = 1.

Reply With Quote