View Single Post
  #23 (permalink)  
Old 08-29-2006, 12:04 PM
brackett brackett is offline
Programmer
 
Join Date: May 2006
Posts: 193
Credits: 0
Rep Power: 11
brackett is on a distinguished road
Default

You could use a RegEx for that - but for your particular scenario, you could just do:
Code:
   If Not String.IsNullOrEmpty(bstrUrl) AndAlso bstrUrl.IndexOf("writeley.com") >= 0 Then
       ' String contains writeley.com
   Else
       ' String does not contain writeley.com
   End If
Reply With Quote